2022-01-04 10:00:12 +01:00

17 lines
474 B
YAML

---
- include: install_{{ ansible_os_family }}.yml
- name: Deploy global patrix config
template: src=patrixrc.j2 dest=/etc/patrixrc mode=640
tags: patrix
- name: Set ACL on patrixrc config
shell: |
setfacl -b /etc/patrixrc
setfacl -m {% for group in system_admin_groups %}g:{{ group }}:r{{ ',' if not loop.last }}{% endfor %} /etc/patrixrc
when: system_admin_groups is defined and system_admin_groups | length > 0
changed_when: False
tags: patrix
...