Reduce usage of becomes for testing

Change-Id: I8b87fb5eda80a8e5198f0ad6d27c53a7437efe02
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This commit is contained in:
Paul Belanger 2016-03-01 15:57:48 -05:00
parent c2421359cb
commit f65ee7e06b
1 changed files with 1 additions and 1 deletions

View File

@ -13,12 +13,12 @@
# under the License.
---
- hosts: test
become: yes
vars:
rolename: "{{ lookup('pipe', 'pwd') | dirname | basename }}"
pre_tasks:
# Make sure OS does not have a stale package cache.
- name: Update apt cache.
become: yes
apt:
update_cache: yes
when: ansible_os_family == 'Debian'