Skip to content
Snippets Groups Projects
Commit 12e0c5ae authored by David Rabel's avatar David Rabel
Browse files

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

Ansible recommends to use apt module instead of apt-get.
This patch fixes install.yml and pre-install.yml accordingly.

Change-Id: I3241ce332e7cf522786e78280643440a30a23875
Closes-Bug: #1747436
parent 70a50993
No related branches found
No related tags found
No related merge requests found
--- ---
- 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 @@ ...@@ -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'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment