roles/samba-dc: Conditionally configure BIND9_DLZ
This commit adjusts the tasks in the *samba-dc* role to use a conditional include to restrict tasks relating to the BIND9_DLZ plugin only to hosts that are configured to use it.jenkins-master
parent
03ef6a402a
commit
efbb563670
|
@ -0,0 +1,12 @@
|
||||||
|
- name: ensure bind9 dlz plugin is installed
|
||||||
|
package:
|
||||||
|
name={{ samba_bind_dlz_pkg }}
|
||||||
|
state=present
|
||||||
|
|
||||||
|
- name: ensure selinux file contexts are correct
|
||||||
|
sefcontext:
|
||||||
|
target={{ item.path }}
|
||||||
|
setype={{ item.setype }}
|
||||||
|
state=present
|
||||||
|
with_items: '{{ samba_selinux_contexts }}'
|
||||||
|
notify: restore samba file contexts
|
|
@ -13,13 +13,9 @@
|
||||||
tags:
|
tags:
|
||||||
- install
|
- install
|
||||||
|
|
||||||
- name: ensure selinux file contexts are correct
|
- name: ensure bind9 dlz plugin is configured
|
||||||
sefcontext:
|
include_tasks: bind9-dlz.yml
|
||||||
target={{ item.path }}
|
when: samba_dc_dns_backend|d == 'BIND9_DLZ'
|
||||||
setype={{ item.setype }}
|
|
||||||
state=present
|
|
||||||
with_items: '{{ samba_selinux_contexts }}'
|
|
||||||
notify: restore samba file contexts
|
|
||||||
|
|
||||||
- name: ensure kerberos is configured
|
- name: ensure kerberos is configured
|
||||||
template:
|
template:
|
||||||
|
|
|
@ -5,6 +5,6 @@ samba_dc_packages:
|
||||||
- ldb-tools
|
- ldb-tools
|
||||||
- openldap-clients
|
- openldap-clients
|
||||||
- samba-dc
|
- samba-dc
|
||||||
- samba-dc-bind-dlz
|
|
||||||
- samba-winbind-clients
|
- samba-winbind-clients
|
||||||
- tdb-tools
|
- tdb-tools
|
||||||
|
samba_bind_dlz_pkg: samba-dc-bind-dlz
|
||||||
|
|
Loading…
Reference in New Issue