Skip to content

Commit

Permalink
Don't loop over apt (#17)
Browse files Browse the repository at this point in the history
* Update playbook.yml

* don't loop over apt

use list of names instead
  • Loading branch information
smiller171 authored and florianutz committed May 11, 2019
1 parent c0e621b commit eecfea0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
5 changes: 2 additions & 3 deletions molecule/default/playbook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,9 @@
pre_tasks:
- name: install packages for testing under docker
apt:
name: "{{ item }}"
name:
- openssh-server
state: present
with_items:
- openssh-server
- name: pretask2
file:
name: /boot/grub
Expand Down
7 changes: 3 additions & 4 deletions tasks/section2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -325,11 +325,10 @@

- name: "SCORED | 2.2.2 | PATCH | Ensure X Window System is not installed"
apt:
name: "{{ item }}"
name:
- "@X Window System"
- "x11*"
state: absent
with_items:
- "@X Window System"
- "x11*"
when:
- not ubuntu1804cis_xwindows_required
- ubuntu1804cis_rule_2_2_2
Expand Down

0 comments on commit eecfea0

Please sign in to comment.