-
Notifications
You must be signed in to change notification settings - Fork 741
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Pass package list directly to apt and yum modules without using with_…
…items loop Invoking "apt" or "yum" only once while using a loop via squash_actions is deprecated. This commit removes the with_items loops to prevent the deprecation warning. Signed-off-by: Norman Bestfleisch <[email protected]>
- Loading branch information
Norman Bestfleisch
committed
Nov 5, 2018
1 parent
b9acd71
commit 9783a8b
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