🚨: yamllint
This commit is contained in:
@@ -30,7 +30,7 @@
|
|||||||
state: directory
|
state: directory
|
||||||
owner: elasticsearch
|
owner: elasticsearch
|
||||||
group: elasticsearch
|
group: elasticsearch
|
||||||
mode: '2750'
|
mode: '2o750'
|
||||||
|
|
||||||
- name: Put elasticsearch config file
|
- name: Put elasticsearch config file
|
||||||
ansible.builtin.template:
|
ansible.builtin.template:
|
||||||
|
@@ -18,7 +18,7 @@
|
|||||||
path: "{{ nsd_default_etc_path }}zones"
|
path: "{{ nsd_default_etc_path }}zones"
|
||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
mode: "0755"
|
mode: "0o755"
|
||||||
state: directory
|
state: directory
|
||||||
|
|
||||||
- name: Create nsd.conf
|
- name: Create nsd.conf
|
||||||
@@ -27,7 +27,7 @@
|
|||||||
dest: "{{ nsd_default_etc_path }}nsd.conf"
|
dest: "{{ nsd_default_etc_path }}nsd.conf"
|
||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
mode: "0640"
|
mode: "0o640"
|
||||||
notify:
|
notify:
|
||||||
- Restart nsd
|
- Restart nsd
|
||||||
|
|
||||||
@@ -37,7 +37,7 @@
|
|||||||
dest: "{{ nsd_default_etc_path }}nsd.conf.d/{{ item.name }}.conf"
|
dest: "{{ nsd_default_etc_path }}nsd.conf.d/{{ item.name }}.conf"
|
||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
mode: "0644"
|
mode: "0o644"
|
||||||
loop: "{{ zones }}"
|
loop: "{{ zones }}"
|
||||||
notify:
|
notify:
|
||||||
- Restart nsd
|
- Restart nsd
|
||||||
|
@@ -6,7 +6,7 @@
|
|||||||
dest: "{{ nsd_default_etc_path }}zones/{{ item.name }}.zone"
|
dest: "{{ nsd_default_etc_path }}zones/{{ item.name }}.zone"
|
||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
mode: "0644"
|
mode: "0o644"
|
||||||
vars:
|
vars:
|
||||||
# This generates 99 different serial per day
|
# 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 }}"
|
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:
|
ansible.builtin.file:
|
||||||
path: "{{ nsd_default_etc_path }}zones/{{ item.name }}.zone"
|
path: "{{ nsd_default_etc_path }}zones/{{ item.name }}.zone"
|
||||||
state: touch
|
state: touch
|
||||||
mode: "0644"
|
mode: "0o644"
|
||||||
|
|
||||||
- name: Check zone file
|
- name: Check zone file
|
||||||
ansible.builtin.command:
|
ansible.builtin.command:
|
||||||
|
Reference in New Issue
Block a user