Premier commit

This commit is contained in:
phil
2023-12-18 23:20:30 +01:00
parent ec25c6dba9
commit 62ef5fa4e9
577 changed files with 46490 additions and 1 deletions

View File

@@ -0,0 +1,38 @@
- name: Installation bind9
apt:
name: bind9
state: present
- name: Copie named.conf.options
copy:
src: named.conf.options
dest: /etc/bind
notify:
- restart bind9
- name: Copie named.conf.local
copy:
src: named.conf.local
dest: /etc/bind
notify:
- restart bind9
- name: Copie resolv.conf
copy:
src: resolv.conf
dest: /etc
notify:
- restart bind9
- name: Changement de droit pour le répertoire /etc/bind
ansible.builtin.lineinfile:
path: /etc/apparmor.d/usr.sbin.named
regexp: ' /etc/bind/\*\* r,'
line: ' /etc/bind/** rw,'
- name: Changement de permission pour le groupe de /etc/bind
ansible.builtin.file:
path: /etc/bind/
state: directory
mode: g=rwx