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. Also add README.
This commit is contained in:
parent
d1f74d2fb8
commit
2b3cc0cb31
5 changed files with 8 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