From 6a9f9c900ddd89f8e4e56077c1255eb176c94432 Mon Sep 17 00:00:00 2001 From: VC Date: Fri, 5 Jul 2024 11:53:53 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=A8:=20yamllint?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- roles/elasticsearch/tasks/main.yml | 2 +- roles/nsd/tasks/main.yml | 6 +++--- roles/nsd/tasks/zones.yml | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/roles/elasticsearch/tasks/main.yml b/roles/elasticsearch/tasks/main.yml index 04ce216..0cfda1c 100644 --- a/roles/elasticsearch/tasks/main.yml +++ b/roles/elasticsearch/tasks/main.yml @@ -30,7 +30,7 @@ state: directory owner: elasticsearch group: elasticsearch - mode: '2750' + mode: '2o750' - name: Put elasticsearch config file ansible.builtin.template: diff --git a/roles/nsd/tasks/main.yml b/roles/nsd/tasks/main.yml index b936f3a..40d1e2e 100644 --- a/roles/nsd/tasks/main.yml +++ b/roles/nsd/tasks/main.yml @@ -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 diff --git a/roles/nsd/tasks/zones.yml b/roles/nsd/tasks/zones.yml index 43e2abe..32acf99 100644 --- a/roles/nsd/tasks/zones.yml +++ b/roles/nsd/tasks/zones.yml @@ -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: