Reduce usage of becomes for testing

Change-Id: Ic5393ee08d93244f6df988d441a2d9be12e251ec
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This commit is contained in:
Paul Belanger 2016-03-01 17:46:15 -05:00
parent a265286484
commit f795330bc5

View File

@ -13,7 +13,6 @@
# under the License. # under the License.
--- ---
- hosts: test - hosts: test
become: yes
vars: vars:
rolename: "{{ lookup('pipe', 'pwd') | dirname | basename }}" rolename: "{{ lookup('pipe', 'pwd') | dirname | basename }}"
@ -52,6 +51,7 @@
when: ansible_os_family == 'Debian' when: ansible_os_family == 'Debian'
- name: Update apt cache. - name: Update apt cache.
become: yes
apt: apt:
update_cache: yes update_cache: yes
when: ansible_os_family == 'Debian' when: ansible_os_family == 'Debian'