Skip to content

Commit

Permalink
Resolved apt module syntax deprecation warning (#136)
Browse files Browse the repository at this point in the history
```
[DEPRECATION WARNING]: Invoking "apt" only once while using a loop via
squash_actions is deprecated. Instead of using a loop to supply multiple items
and specifying `name: {{ item }}`, please use `name: [u'ca-certificates', u
'apt-transport-https']` and remove the loop. This feature will be removed in
version 2.11. Deprecation warnings can be disabled by setting
deprecation_warnings=False in ansible.cfg.
[DEPRECATION WARNING]: Invoking "apt" only once while using a loop via
squash_actions is deprecated. Instead of using a loop to supply multiple items
and specifying `name: {{ item }}`, please use `name: [u'gconf2', u'libasound2',
 u'libgtk2.0-0', u'libxss1']` and remove the loop. This feature will be removed
 in version 2.11. Deprecation warnings can be disabled by setting
deprecation_warnings=False in ansible.cfg.
```
  • Loading branch information
freemanjp authored Oct 10, 2018
1 parent 6ccacbe commit b268e12
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
7 changes: 3 additions & 4 deletions tasks/install-apt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,10 @@
- name: install dependencies (apt)
become: yes
apt:
name: '{{ item }}'
name:
- ca-certificates
- apt-transport-https
state: present
with_items:
- ca-certificates
- apt-transport-https

- name: install key (apt)
become: yes
Expand Down
11 changes: 5 additions & 6 deletions tasks/install-extensions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,12 @@
- name: install extension cli dependencies (apt)
become: yes
apt:
name: '{{ item }}'
name:
- gconf2
- libasound2
- libgtk2.0-0
- libxss1
state: present
with_items:
- gconf2
- libasound2
- libgtk2.0-0
- libxss1
when: ansible_pkg_mgr == 'apt'

- name: install extension cli dependencies (dnf)
Expand Down

0 comments on commit b268e12

Please sign in to comment.