Moving apt cache update to top to ensure cache is updated before deps installed

This commit is contained in:
James Cammarata 2015-12-17 11:00:54 -05:00
parent ce159ce2eb
commit 4abbe8a989

View file

@ -1,5 +1,8 @@
---
- apt: update_cache=yes
when: ansible_os_family == 'Debian'
- name: Install sudo
yum: name=sudo state=installed
ignore_errors: true
@ -42,9 +45,6 @@
- libselinux-python
when: ansible_os_family == 'RedHat'
- apt: update_cache=yes
when: ansible_os_family == 'Debian'
- name: Install Debian ansible dependencies
apt: name="{{ item }}" state=installed update_cache=yes
sudo: true