Infra/ansible/roles/cloud_key/tasks/main.yml

18 lines
455 B
YAML
Raw Normal View History

2022-10-18 22:04:13 +02:00
- 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