summaryrefslogtreecommitdiffstats
path: root/roles/dnsserver/tasks/dirs.yml
diff options
context:
space:
mode:
authorMatthieu Saulnier <fantom@fedoraproject.org>2014-10-12 01:04:07 +0200
committerMatthieu Saulnier <fantom@fedoraproject.org>2014-10-12 01:04:07 +0200
commit3568a116090758c76cbd24391ad8b3d460c06283 (patch)
tree1b10bbaf6d69f672dcdbf1e81fb885be46590f82 /roles/dnsserver/tasks/dirs.yml
parent9d6f806272bc144b2d964ed55fc6b80067212261 (diff)
downloadplaybooks-ansible-3568a116090758c76cbd24391ad8b3d460c06283.tar.gz
playbooks-ansible-3568a116090758c76cbd24391ad8b3d460c06283.tar.xz
playbooks-ansible-3568a116090758c76cbd24391ad8b3d460c06283.zip
Add main playbook for dnsserver role
Update inventory file Update zone file Add conditionnal and port setting in config Fix syntax error for file module Add SELinux boolean configuration
Diffstat (limited to 'roles/dnsserver/tasks/dirs.yml')
-rw-r--r--roles/dnsserver/tasks/dirs.yml8
1 files changed, 6 insertions, 2 deletions
diff --git a/roles/dnsserver/tasks/dirs.yml b/roles/dnsserver/tasks/dirs.yml
index 5768ad3..93a0a1a 100644
--- a/roles/dnsserver/tasks/dirs.yml
+++ b/roles/dnsserver/tasks/dirs.yml
@@ -13,7 +13,7 @@
when: ansible_distribution == "CentOS"
- name: Création initiale des fichiers journaux dans /var/log/
- file: path=/var/log/named/{{ item }} state=present
+ file: path=/var/log/named/{{ item }} state=file
owner=named
group=named
mode=644
@@ -29,7 +29,7 @@
when: ansible_distribution == "Fedora"
- name: Création initiale des fichiers journaux dans /var/named/chroot/
- file: path=/var/named/chroot/var/log/named/{{ item }} state=present
+ file: path=/var/named/chroot/var/log/named/{{ item }} state=file
owner=named
group=named
mode=644
@@ -46,3 +46,7 @@
- name: Modification des permissions de /var/named/
file: path=/var/named/ state=directory mode=770
+
+- name: Configuration booleen SELinux de /var/named/
+ seboolean: name=named_write_master_zones state=yes persistent=yes
+ when: ansible_selinux != false