Limit become usage for testing
Change-Id: Id15688bf0cf6cd95ee625368973e4ce6b30a990c Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This commit is contained in:
parent
a0a37bddb9
commit
5fc48b568e
|
@ -13,12 +13,12 @@
|
||||||
# under the License.
|
# under the License.
|
||||||
---
|
---
|
||||||
- hosts: localhost
|
- hosts: localhost
|
||||||
become: yes
|
|
||||||
vars:
|
vars:
|
||||||
rolename: "{{ lookup('pipe', 'pwd') | dirname | basename }}"
|
rolename: "{{ lookup('pipe', 'pwd') | dirname | basename }}"
|
||||||
pre_tasks:
|
pre_tasks:
|
||||||
# Make sure OS does not have a stale package cache.
|
# Make sure OS does not have a stale package cache.
|
||||||
- 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'
|
||||||
|
@ -188,6 +188,7 @@
|
||||||
when: ansible_os_family == 'RedHat'
|
when: ansible_os_family == 'RedHat'
|
||||||
|
|
||||||
- name: Ensure nodepoold is running.
|
- name: Ensure nodepoold is running.
|
||||||
|
become: yes
|
||||||
shell: /usr/sbin/service nodepool status
|
shell: /usr/sbin/service nodepool status
|
||||||
tags: skip_ansible_lint
|
tags: skip_ansible_lint
|
||||||
|
|
||||||
|
@ -256,5 +257,6 @@
|
||||||
when: ansible_os_family == 'RedHat'
|
when: ansible_os_family == 'RedHat'
|
||||||
|
|
||||||
- name: Ensure nodepool-builder is running.
|
- name: Ensure nodepool-builder is running.
|
||||||
|
become: yes
|
||||||
shell: /usr/sbin/service nodepool-builder status
|
shell: /usr/sbin/service nodepool-builder status
|
||||||
tags: skip_ansible_lint
|
tags: skip_ansible_lint
|
||||||
|
|
Loading…
Reference in New Issue