Skip to content

Commit

Permalink
fix: fix deprication warning for ansible 2.7 and apt package loops
Browse files Browse the repository at this point in the history
fixes #21
  • Loading branch information
franklinkim committed Nov 1, 2018
1 parent 284b0e2 commit 556b644
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
11 changes: 6 additions & 5 deletions tasks/dependencies.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@

- name: Installing required packages
apt:
pkg: "{{ item }}"
name: "{{ packages }}"
state: present
with_items:
- aptitude
- python-apt
- python-pycurl
vars:
packages:
- aptitude
- python-apt
- python-pycurl
3 changes: 1 addition & 2 deletions tasks/packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

- name: Installing packages
apt:
pkg: "{{ item }}"
name: "{{ apt_packages }}"
state: present
autoremove: "{{ apt_autoremove }}"
with_items: "{{ apt_packages }}"

0 comments on commit 556b644

Please sign in to comment.