From 5fc48b568edf537098083d933a0b119c4f25951e Mon Sep 17 00:00:00 2001 From: Paul Belanger Date: Mon, 5 Sep 2016 22:02:13 -0400 Subject: [PATCH] Limit become usage for testing Change-Id: Id15688bf0cf6cd95ee625368973e4ce6b30a990c Signed-off-by: Paul Belanger --- tests/test.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/test.yaml b/tests/test.yaml index 150f65c..12a3f6c 100644 --- a/tests/test.yaml +++ b/tests/test.yaml @@ -13,12 +13,12 @@ # under the License. --- - hosts: localhost - 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' @@ -188,6 +188,7 @@ when: ansible_os_family == 'RedHat' - name: Ensure nodepoold is running. + become: yes shell: /usr/sbin/service nodepool status tags: skip_ansible_lint @@ -256,5 +257,6 @@ when: ansible_os_family == 'RedHat' - name: Ensure nodepool-builder is running. + become: yes shell: /usr/sbin/service nodepool-builder status tags: skip_ansible_lint