configurations-ansible/roles/auditd/tasks/install_rules.yml
2022-11-22 15:30:41 +01:00

14 lines
446 B
YAML

- name: Install rules for {{ item }}
ansible.builtin.file:
path: '/{{ item.path }}'
state: directory
mode: '{{ item.mode }}'
with_community.general.filetree: '../templates/{{ item }}/'
when: item.state == 'directory'
- name: Create and copy rules files
ansible.builtin.template:
src: '{{ item.src }}'
dest: '/{{ item.path }}'
with_community.general.filetree: '../templates/{{ item }}/'
when: item.state == 'file'