Skip to content

Commit

Permalink
Merge pull request dev-sec#200 from Normo/master
Browse files Browse the repository at this point in the history
Pass package list directly to apt and yum modules without using with_items loop
  • Loading branch information
rndmh3ro authored Nov 5, 2018
2 parents 0179ff7 + c8b25d2 commit accaa48
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 1 addition & 3 deletions tasks/apt.yml
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'
4 changes: 1 addition & 3 deletions tasks/yum.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,6 @@

- name: remove deprecated or insecure packages | package-01 - package-09
yum:
name: '{{ item }}'
name: '{{ os_security_packages_list }}'
state: 'absent'
with_items:
- '{{ os_security_packages_list }}'
when: os_security_packages_clean

0 comments on commit accaa48

Please sign in to comment.