Use shell for apt-get update
The apt ansible module requires python-apt, but this command is trying to update the apt cache which is, by definition, out of date since we just changed the sources list. Just use the shell so we don't require anything extra on images. Change-Id: I41313af70193f97e2ef433d0ac0a0d274fafddb7
This commit is contained in:
parent
6e7c116793
commit
ac6355f0cc
@ -22,6 +22,5 @@
|
|||||||
# Make sure OS does not have a stale package cache.
|
# Make sure OS does not have a stale package cache.
|
||||||
- name: Update apt cache
|
- name: Update apt cache
|
||||||
become: yes
|
become: yes
|
||||||
apt:
|
command: apt-get update
|
||||||
update_cache: yes
|
|
||||||
when: ansible_os_family == 'Debian'
|
when: ansible_os_family == 'Debian'
|
||||||
|
Loading…
Reference in New Issue
Block a user