Commit 41791aaa authored by Thomas Gambier's avatar Thomas Gambier 🚴🏼

fix for old versions of ansible

apt package didn't support direct list input for "name" arg. Use
with_items instead.
parent 060ea7ea
...@@ -7,4 +7,5 @@ ...@@ -7,4 +7,5 @@
register: packages_to_upgrade register: packages_to_upgrade
- name: Upgrade all apt related packages - name: Upgrade all apt related packages
apt: name={{ packages_to_upgrade.stdout.split('\n') }} state=latest apt: name={{ item }} state=latest
with_items: "{{ packages_to_upgrade.stdout.split('\n') }}"
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment