From fe875707cd990d5b2b1c4688f3934941d390e5ec Mon Sep 17 00:00:00 2001 From: Frederick Witty Date: Tue, 26 Sep 2023 14:55:42 -0400 Subject: [PATCH] Typo fixes and yamllint lenth added to .ansible-lint Signed-off-by: Frederick Witty --- .ansible-lint | 1 + tasks/LE_audit_setup.yml | 2 +- tasks/section_6/cis_6.1.x.yml | 16 ++++++++-------- tasks/warning_facts.yml | 2 +- 4 files changed, 11 insertions(+), 10 deletions(-) diff --git a/.ansible-lint b/.ansible-lint index b717f678..c7095e24 100755 --- a/.ansible-lint +++ b/.ansible-lint @@ -11,6 +11,7 @@ skip_list: - 'name[casing]' - 'name[template]' - 'key-order[task]' + - 'yaml[line-length]' - '204' - '305' - '303' diff --git a/tasks/LE_audit_setup.yml b/tasks/LE_audit_setup.yml index 199dbe57..c8222b8e 100644 --- a/tasks/LE_audit_setup.yml +++ b/tasks/LE_audit_setup.yml @@ -15,8 +15,8 @@ ansible.builtin.copy: src: "{{ audit_bin_copy_location }}" dest: "{{ audit_bin }}" - mode: '0555' owner: root group: root + mode: '0555' when: - get_audit_binary_method == 'copy' diff --git a/tasks/section_6/cis_6.1.x.yml b/tasks/section_6/cis_6.1.x.yml index 00c6a0a2..41a3988d 100644 --- a/tasks/section_6/cis_6.1.x.yml +++ b/tasks/section_6/cis_6.1.x.yml @@ -5,7 +5,7 @@ path: /etc/passwd owner: root group: root - mode: 0644 + mode: '0644' when: - ubtu22cis_rule_6_1_1 tags: @@ -20,7 +20,7 @@ path: /etc/passwd- owner: root group: root - mode: 0644 + mode: '0644' when: - ubtu22cis_rule_6_1_2 tags: @@ -35,7 +35,7 @@ path: /etc/group- owner: root group: root - mode: 0644 + mode: '0644' when: - ubtu22cis_rule_6_1_3 tags: @@ -50,7 +50,7 @@ path: /etc/group- owner: root group: root - mode: 0644 + mode: '0644' when: - ubtu22cis_rule_6_1_4 tags: @@ -65,7 +65,7 @@ path: /etc/shadow owner: root group: root - mode: 0000 + mode: '0000' when: - ubtu22cis_rule_6_1_5 tags: @@ -80,7 +80,7 @@ path: /etc/shadow- owner: root group: root - mode: 0000 + mode: '0000' when: - ubtu22cis_rule_6_1_6 tags: @@ -95,7 +95,7 @@ path: /etc/gshadow owner: root group: root - mode: 0000 + mode: '0000' when: - ubtu22cis_rule_6_1_7 tags: @@ -110,7 +110,7 @@ path: /etc/gshadow- owner: root group: root - mode: 0000 + mode: '0000' when: - ubtu22cis_rule_6_1_8 tags: diff --git a/tasks/warning_facts.yml b/tasks/warning_facts.yml index 6e804873..0da92a67 100644 --- a/tasks/warning_facts.yml +++ b/tasks/warning_facts.yml @@ -12,7 +12,7 @@ # # warn_control_list is the main variable to be used and is a list made up of the warn_control_id’s # -# warn_count the main variable for the number of warnings and each time a warn_control_id is added +# warn_count is the main variable for the number of warnings and each time a warn_control_id is added # the count increases by a value of 1 - name: "{{ warn_control_id }} | AUDIT | Set fact for manual task warning." ansible.builtin.set_fact: