diff options
Diffstat (limited to 'roles/host')
| -rw-r--r-- | roles/host/tasks/main.yml | 3 | ||||
| -rw-r--r-- | roles/host/tasks/selinux.yml | 8 |
2 files changed, 11 insertions, 0 deletions
diff --git a/roles/host/tasks/main.yml b/roles/host/tasks/main.yml index f1eeb48..c8fd897 100644 --- a/roles/host/tasks/main.yml +++ b/roles/host/tasks/main.yml @@ -29,5 +29,8 @@ - ansible.builtin.import_tasks: firewall.yml when: host_firewall is defined +- ansible.builtin.import_tasks: selinux.yml + when: host_selinux is defined + - ansible.builtin.import_tasks: cpanel-dnsonly.yml when: host_cpanel_installed | bool diff --git a/roles/host/tasks/selinux.yml b/roles/host/tasks/selinux.yml new file mode 100644 index 0000000..c8cfc37 --- /dev/null +++ b/roles/host/tasks/selinux.yml @@ -0,0 +1,8 @@ +--- +- name: Set seboolean + ansible.posix.seboolean: + name: "{{ item.name }}" + state: "{{ item.state }}" + persistent: true + loop: "{{ host_selinux.booleans }}" + when: host_selinux.booleans is defined |
