18 lines
455 B
YAML
18 lines
455 B
YAML
- name: Ensure folder for site exists
|
|
ansible.builtin.file:
|
|
path: "/srv/unifi/data/sites/{{ unifi_site }}"
|
|
state: directory
|
|
mode: "0755"
|
|
owner: unifi
|
|
group: unifi
|
|
|
|
- name: Place config.gateway.json
|
|
ansible.builtin.template:
|
|
src: config.gateway.json.j2
|
|
dest: "/srv/unifi/data/sites/{{ unifi_site }}/config.gateway.json"
|
|
owner: unifi
|
|
group: unifi
|
|
mode: "0644"
|
|
validate: python -m json.tool %s
|
|
backup: yes
|