2021-12-01 19:13:34 +01:00
|
|
|
---
|
|
|
|
|
|
|
|
- include: install_{{ ansible_os_family }}.yml
|
|
|
|
|
2022-01-03 18:00:13 +01:00
|
|
|
- name: Deploy global patrix config
|
2022-01-04 10:00:12 +01:00
|
|
|
template: src=patrixrc.j2 dest=/etc/patrixrc mode=640
|
2021-12-01 19:13:34 +01:00
|
|
|
tags: patrix
|
|
|
|
|
2022-01-03 17:00:09 +01:00
|
|
|
- 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
|
2022-01-04 18:00:12 +01:00
|
|
|
failed_when: False # Do not fail if eg, the FS doesn't support ACL
|
2022-01-03 17:00:09 +01:00
|
|
|
tags: patrix
|
2021-12-01 19:13:34 +01:00
|
|
|
...
|