add task to set selinux booleans

This commit is contained in:
Robert Kaussow 2018-09-27 00:06:07 +02:00
parent ad7f1c6f7b
commit 0459ad9683

View File

@ -82,6 +82,14 @@
state: present state: present
rules: '-A INPUT -p tcp -m multiport --dports {{ nginx_open_ports|join(",") }} -j ACCEPT' rules: '-A INPUT -p tcp -m multiport --dports {{ nginx_open_ports|join(",") }} -j ACCEPT'
when: nginx_iptables_enabled when: nginx_iptables_enabled
- name: Set selinux booleans
seboolean:
name: "{{ item.name }}"
state: "{{ item.state }}"
persistent: "{{ item.persistent }}"
with_items: "{{ nginx_set_sebooleans }}"
when: nginx_set_sebooleans
become: True become: True
become_user: root become_user: root