diff --git a/handlers/main.yml b/handlers/main.yml index 0668363..b1c23b1 100644 --- a/handlers/main.yml +++ b/handlers/main.yml @@ -30,8 +30,8 @@ when: - "'/tmp' in mount_names" - tmp_mnt_type == 'fstab' - - item.mount == "/tmp" - listen: Writing and remounting tmp + - item.mount == "/tmp" + listen: Writing and remounting tmp - name: Remount tmp ansible.posix.mount: diff --git a/tasks/prelim.yml b/tasks/prelim.yml index 924af10..c365f97 100644 --- a/tasks/prelim.yml +++ b/tasks/prelim.yml @@ -65,12 +65,12 @@ ansible.builtin.set_fact: tmp_partition_mount_options: [] when: "'/tmp' not in mount_names" - - - name: Initializing the var if there is a /tmp mount + + - name: Initializing the var if there is a /tmp mount ansible.builtin.set_fact: tmp_partition_mount_options: "{{ item.options }}" loop: "{{ ansible_facts.mounts }}" - when: + when: - item.mount == "/tmp" - "'/tmp' in mount_names" tags: diff --git a/tasks/section_1/cis_1.1.2.x.yml b/tasks/section_1/cis_1.1.2.x.yml index 44a1882..9ed201f 100644 --- a/tasks/section_1/cis_1.1.2.x.yml +++ b/tasks/section_1/cis_1.1.2.x.yml @@ -27,8 +27,8 @@ ansible.builtin.set_fact: tmp_partition_mount_options: "{{ tmp_partition_mount_options + [ 'nodev' ] }}" notify: Writing and remounting tmp - when: ubtu22cis_rule_1_1_2_2 - tags: + when: ubtu22cis_rule_1_1_2_2 + tags: - level1-server - level1-workstation - automated @@ -40,8 +40,8 @@ ansible.builtin.set_fact: tmp_partition_mount_options: "{{ tmp_partition_mount_options + [ 'noexec' ] }}" notify: Writing and remounting tmp - when: ubtu22cis_rule_1_1_2_3 - tags: + when: ubtu22cis_rule_1_1_2_3 + tags: - level1-server - level1-workstation - automated @@ -53,8 +53,8 @@ ansible.builtin.set_fact: tmp_partition_mount_options: "{{ tmp_partition_mount_options + [ 'nosuid' ] }}" notify: Writing and remounting tmp - when: ubtu22cis_rule_1_1_2_4 - tags: + when: ubtu22cis_rule_1_1_2_4 + tags: - level1-server - level1-workstation - automated