forked from dev-sec/ansible-collection-hardening
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request dev-sec#200 from Normo/master
Pass package list directly to apt and yum modules without using with_items loop
- Loading branch information
Showing
2 changed files
with
2 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,6 @@ | ||
--- | ||
- name: remove deprecated or insecure packages | package-01 - package-09 | ||
apt: | ||
name: '{{ item }}' | ||
name: '{{ os_security_packages_list }}' | ||
state: 'absent' | ||
with_items: | ||
- '{{ os_security_packages_list }}' | ||
when: 'os_security_packages_clean' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters