Skip to content
This repository has been archived by the owner on Nov 23, 2019. It is now read-only.

Remove bare variables within with_ loops #32

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions roles/cis/tasks/section_01_level1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
fstype={{ item.fstype }}
opts="nodev,nosuid,noexec"
when: item.mount == "/tmp"
with_items: ansible_mounts
with_items: "{{ ansible_mounts }}"
tags:
- scored
- section1.1
Expand All @@ -53,7 +53,7 @@
fstype="none"
opts="bind"
when: item.mount == "/tmp"
with_items: ansible_mounts
with_items: "{{ ansible_mounts }}"
tags:
- scored
- section1.1
Expand Down Expand Up @@ -88,7 +88,7 @@
fstype={{ item.fstype }}
opts="nodev"
when: item.mount == "/home"
with_items: ansible_mounts
with_items: "{{ ansible_mounts }}"
tags:
- scored
- section1.1
Expand Down
2 changes: 1 addition & 1 deletion roles/cis/tasks/section_07_level1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@

- name: 7.2 Disable System Accounts (Scored)
command: /usr/sbin/usermod -s /sbin/nologin {{ item }}
with_items: enabled_system_accounts.stdout_lines
with_items: "{{ enabled_system_accounts.stdout_lines }}"
tags:
- scored
- section7.2
Expand Down
6 changes: 3 additions & 3 deletions roles/cis/tasks/section_08_level1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
state=absent
changed_when: false
with_items:
- stats.results
- "{{ stats.results }}"
when: item.islnk is defined
tags:
- scored
Expand All @@ -44,7 +44,7 @@
state=absent
changed_when: false
with_items:
- stats.results
- "{{ stats.results }}"
when: item.islnk is defined
tags:
- scored
Expand All @@ -56,7 +56,7 @@
state=absent
changed_when: false
with_items:
- stats.results
- "{{ stats.results }}"
when: item.islnk is defined
tags:
- scored
Expand Down