From 549347be2dac84c9aff6877af258adab5027fe05 Mon Sep 17 00:00:00 2001 From: Paul Belanger Date: Mon, 5 Sep 2016 21:19:05 -0400 Subject: [PATCH] Limit become usage for testing Change-Id: Ief1bc64a374be291b1efbf72b3b753f3e4737331 Signed-off-by: Paul Belanger --- tests/test.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/test.yaml b/tests/test.yaml index 1aa4992..cb3292b 100644 --- a/tests/test.yaml +++ b/tests/test.yaml @@ -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' @@ -300,13 +300,16 @@ when: ansible_os_family == 'RedHat' - name: Ensure zuul-launcher is running. + become: yes shell: /usr/sbin/service zuul-launcher status tags: skip_ansible_lint - name: Ensure zuul-merger is running. + become: yes shell: /usr/sbin/service zuul-merger status tags: skip_ansible_lint - name: Ensure zuul-server is running. + become: yes shell: /usr/sbin/service zuul-server status tags: skip_ansible_lint