diff options
author | Matthieu Saulnier <fantom@fedoraproject.org> | 2014-08-13 13:01:08 +0200 |
---|---|---|
committer | Matthieu Saulnier <fantom@fedoraproject.org> | 2014-08-13 13:01:08 +0200 |
commit | 6ede4c582efba3e8aeec74522e0687c463900b08 (patch) | |
tree | dda2067c331e08acec6005351dafeb2db556ce50 /roles/dnsserver/tasks/dirs.yml | |
parent | 3eb0c40f765446dfca808a129decb9233a05d70f (diff) | |
download | playbooks-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.yml | 40 |
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 |