diff --git a/ansible/roles/baremetal/tasks/install.yml b/ansible/roles/baremetal/tasks/install.yml index 71ea50efc0..40e94af5d0 100644 --- a/ansible/roles/baremetal/tasks/install.yml +++ b/ansible/roles/baremetal/tasks/install.yml @@ -1,6 +1,7 @@ --- - name: Update apt cache - command: apt-get update + apt: + update_cache: yes become: True when: ansible_os_family == 'Debian' diff --git a/ansible/roles/baremetal/tasks/pre-install.yml b/ansible/roles/baremetal/tasks/pre-install.yml index 87be47ed2d..a820a11f17 100644 --- a/ansible/roles/baremetal/tasks/pre-install.yml +++ b/ansible/roles/baremetal/tasks/pre-install.yml @@ -73,7 +73,8 @@ when: create_kolla_user | bool - name: Install apt packages - command: apt-get update + apt: + update_cache: yes become: True when: ansible_os_family == 'Debian'