Merge "Use apt Ansible module instead of apt-get to update cache"

This commit is contained in:
Zuul 2018-02-13 07:20:17 +00:00 committed by Gerrit Code Review
commit e8d541d885
2 changed files with 4 additions and 2 deletions

View File

@ -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'

View File

@ -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'