Limit become usage for testing

Change-Id: Id15688bf0cf6cd95ee625368973e4ce6b30a990c
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This commit is contained in:
Paul Belanger 2016-09-05 22:02:13 -04:00
parent a0a37bddb9
commit 5fc48b568e
No known key found for this signature in database
GPG Key ID: 611A80832067AF38
1 changed files with 3 additions and 1 deletions

View File

@ -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