ansible-roles/roles/patrix/tasks/main.yml

19 lines
564 B
YAML
Raw Normal View History

2021-12-01 19:13:34 +01:00
---
2022-03-07 16:00:05 +01:00
- include_tasks: install_{{ ansible_os_family }}.yml
tags: always
2021-12-01 19:13:34 +01:00
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
...