mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Moving apt cache update to top to ensure cache is updated before deps installed
This commit is contained in:
parent
0b1ad8d490
commit
cf3d503f79
1 changed files with 3 additions and 3 deletions
|
@ -1,5 +1,8 @@
|
||||||
---
|
---
|
||||||
|
|
||||||
|
- apt: update_cache=yes
|
||||||
|
when: ansible_os_family == 'Debian'
|
||||||
|
|
||||||
- name: Install sudo
|
- name: Install sudo
|
||||||
yum: name=sudo state=installed
|
yum: name=sudo state=installed
|
||||||
ignore_errors: true
|
ignore_errors: true
|
||||||
|
@ -42,9 +45,6 @@
|
||||||
- libselinux-python
|
- libselinux-python
|
||||||
when: ansible_os_family == 'RedHat'
|
when: ansible_os_family == 'RedHat'
|
||||||
|
|
||||||
- apt: update_cache=yes
|
|
||||||
when: ansible_os_family == 'Debian'
|
|
||||||
|
|
||||||
- name: Install Debian ansible dependencies
|
- name: Install Debian ansible dependencies
|
||||||
apt: name="{{ item }}" state=installed update_cache=yes
|
apt: name="{{ item }}" state=installed update_cache=yes
|
||||||
sudo: true
|
sudo: true
|
||||||
|
|
Loading…
Reference in a new issue