🚨: yamllint

This commit is contained in:
VC
2024-07-05 11:53:53 +02:00
parent 4bb7e440f1
commit 6a9f9c900d
3 changed files with 6 additions and 6 deletions

View File

@@ -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

View File

@@ -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: