Rename dns_server, add var for selinux. (#1572)

* Rename dns_server to dnsmasq_dns_server so that it includes role prefix
as the var name is generic and conflicts when integrating with existing ansible automation.
*  Enable selinux state to be configurable with new var preinstall_selinux_state
This commit is contained in:
Vijay Katam
2017-10-11 12:40:21 -07:00
committed by Matthew Mosesohn
parent e41c0532e3
commit 27ed73e3e3
11 changed files with 14 additions and 11 deletions

View File

@@ -176,10 +176,10 @@
when: ansible_os_family == "RedHat"
register: slc
- name: Set selinux policy to permissive
- name: Set selinux policy
selinux:
policy: targeted
state: permissive
state: "{{ preinstall_selinux_state }}"
when:
- ansible_os_family == "RedHat"
- slc.stat.exists == True