summaryrefslogtreecommitdiffstats
path: root/roles/dnsserver/tasks/dirs.yml
diff options
context:
space:
mode:
authorMatthieu Saulnier <fantom@fedoraproject.org>2014-08-13 13:01:08 +0200
committerMatthieu Saulnier <fantom@fedoraproject.org>2014-08-13 13:01:08 +0200
commit6ede4c582efba3e8aeec74522e0687c463900b08 (patch)
treedda2067c331e08acec6005351dafeb2db556ce50 /roles/dnsserver/tasks/dirs.yml
parent3eb0c40f765446dfca808a129decb9233a05d70f (diff)
downloadplaybooks-ansible-6ede4c582efba3e8aeec74522e0687c463900b08.tar.gz
playbooks-ansible-6ede4c582efba3e8aeec74522e0687c463900b08.tar.xz
playbooks-ansible-6ede4c582efba3e8aeec74522e0687c463900b08.zip
Minor fix in clients role and add tasks in dnsserver role
- No need to specify path file in src of copy module - Add initial creation logfiles for named - named in centos 6 is chrooted - named in fedora is not chrooted
Diffstat (limited to 'roles/dnsserver/tasks/dirs.yml')
-rw-r--r--roles/dnsserver/tasks/dirs.yml40
1 files changed, 40 insertions, 0 deletions
diff --git a/roles/dnsserver/tasks/dirs.yml b/roles/dnsserver/tasks/dirs.yml
index 36823cc..5e0ef56 100644
--- a/roles/dnsserver/tasks/dirs.yml
+++ b/roles/dnsserver/tasks/dirs.yml
@@ -3,6 +3,46 @@
owner=root
group=named
mode=770
+ when: ansible_distribution == "Fedora"
+
+- name: Création du répertoire de log
+ file: path=/var/named/chroot/var/log/named/ state=directory
+ owner=named
+ group=named
+ mode=770
+ when: ansible_distribution == "CentOS"
+
+- name: Création initiale des fichiers journaux
+ file: path=/var/log/named/{{ item }} state=present
+ owner=named
+ group=named
+ mode=644
+ with_items:
+ - lame-servers.log
+ - notify.log
+ - query.log
+ - security.log
+ - syslog.log
+ - update.log
+ - xfer-in.log
+ - xfer-out.log
+ when: ansible_distribution == "Fedora"
+
+- name: Création initiale des fichiers journaux
+ file: path=/var/named/chroot/var/log/named/{{ item }} state=present
+ owner=named
+ group=named
+ mode=644
+ with_items:
+ - lame-servers.log
+ - notify.log
+ - query.log
+ - security.log
+ - syslog.log
+ - update.log
+ - xfer-in.log
+ - xfer-out.log
+ when: ansible_distribution == "CentOS"
- name: Modification des permissions de /var/named/
file: path=/var/named/ state=directory mode=770