🚨: yamllint
This commit is contained in:
@@ -18,7 +18,7 @@
|
||||
path: "{{ nsd_default_etc_path }}zones"
|
||||
owner: root
|
||||
group: root
|
||||
mode: "0755"
|
||||
mode: "0o755"
|
||||
state: directory
|
||||
|
||||
- name: Create nsd.conf
|
||||
@@ -27,7 +27,7 @@
|
||||
dest: "{{ nsd_default_etc_path }}nsd.conf"
|
||||
owner: root
|
||||
group: root
|
||||
mode: "0640"
|
||||
mode: "0o640"
|
||||
notify:
|
||||
- Restart nsd
|
||||
|
||||
@@ -37,7 +37,7 @@
|
||||
dest: "{{ nsd_default_etc_path }}nsd.conf.d/{{ item.name }}.conf"
|
||||
owner: root
|
||||
group: root
|
||||
mode: "0644"
|
||||
mode: "0o644"
|
||||
loop: "{{ zones }}"
|
||||
notify:
|
||||
- Restart nsd
|
||||
|
@@ -6,7 +6,7 @@
|
||||
dest: "{{ nsd_default_etc_path }}zones/{{ item.name }}.zone"
|
||||
owner: root
|
||||
group: root
|
||||
mode: "0644"
|
||||
mode: "0o644"
|
||||
vars:
|
||||
# This generates 99 different serial per day
|
||||
dns_serial: "{{ ansible_date_time.year }}{{ ansible_date_time.month }}{{ ansible_date_time.day }}{{ ((ansible_date_time.hour | int * 3600 + ansible_date_time.minute | int * 60 + ansible_date_time.second | int) * 99 / 86400) | int }}"
|
||||
@@ -15,7 +15,7 @@
|
||||
ansible.builtin.file:
|
||||
path: "{{ nsd_default_etc_path }}zones/{{ item.name }}.zone"
|
||||
state: touch
|
||||
mode: "0644"
|
||||
mode: "0o644"
|
||||
|
||||
- name: Check zone file
|
||||
ansible.builtin.command:
|
||||
|
Reference in New Issue
Block a user