From 516f9c5e879314ac1d4921c1fc59e3d110ab1cab Mon Sep 17 00:00:00 2001 From: spmfox Date: Mon, 25 Aug 2025 13:07:11 -0400 Subject: adding selinux booleans --- roles/host/tasks/main.yml | 3 +++ roles/host/tasks/selinux.yml | 8 ++++++++ 2 files changed, 11 insertions(+) create mode 100644 roles/host/tasks/selinux.yml (limited to 'roles') 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 -- cgit