Merge "Use apt Ansible module instead of apt-get to update cache"
This commit is contained in:
commit
e8d541d885
@ -1,6 +1,7 @@
|
|||||||
---
|
---
|
||||||
- name: Update apt cache
|
- name: Update apt cache
|
||||||
command: apt-get update
|
apt:
|
||||||
|
update_cache: yes
|
||||||
become: True
|
become: True
|
||||||
when: ansible_os_family == 'Debian'
|
when: ansible_os_family == 'Debian'
|
||||||
|
|
||||||
|
@ -73,7 +73,8 @@
|
|||||||
when: create_kolla_user | bool
|
when: create_kolla_user | bool
|
||||||
|
|
||||||
- name: Install apt packages
|
- name: Install apt packages
|
||||||
command: apt-get update
|
apt:
|
||||||
|
update_cache: yes
|
||||||
become: True
|
become: True
|
||||||
when: ansible_os_family == 'Debian'
|
when: ansible_os_family == 'Debian'
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user