diff options
| author | spmfox <spmfox@foxwd.com> | 2025-08-25 13:07:11 -0400 |
|---|---|---|
| committer | spmfox <spmfox@foxwd.com> | 2025-08-25 13:07:11 -0400 |
| commit | 516f9c5e879314ac1d4921c1fc59e3d110ab1cab (patch) | |
| tree | a0628718012f31ec11c1ff53493f887b201c71a4 /roles/host | |
| parent | e53c324dae5957a99f6ecbb0ad88246c204da42f (diff) | |
adding selinux booleans
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 |
