friwall: don’t template settings
Let all settings including list of nodes be managed by application. Exception is the list of networks instantiated from NetBox data.
This commit is contained in:
parent
ff90d3c0a3
commit
f52934cd25
4 changed files with 7 additions and 41 deletions
|
|
@ -38,17 +38,18 @@
|
|||
extra_args: --user --break-system-packages --no-warn-script-location
|
||||
notify: restart uwsgi
|
||||
|
||||
- name: Configure base settings
|
||||
template:
|
||||
dest: "/srv/friwall/{{ item }}"
|
||||
src: "{{ item }}.j2"
|
||||
- name: Ensure setting files exist
|
||||
copy:
|
||||
dest: "/srv/friwall/{{ item }}.json"
|
||||
content: |
|
||||
{}
|
||||
owner: friwall
|
||||
group: friwall
|
||||
mode: 0600
|
||||
force: no
|
||||
loop:
|
||||
- nodes.json
|
||||
- settings.json
|
||||
- nodes
|
||||
- settings
|
||||
notify: restart uwsgi
|
||||
|
||||
- name: Configure list of networks
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue