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