diff --git a/tests/test.yaml b/tests/test.yaml index 6b601c6..7a0a6fc 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' @@ -56,6 +56,7 @@ - jenkins_jobs_ini_stat.stat.mode == '0440' - name: Ensure jenkins_jobs.ini was templated. + become: true copy: dest: /etc/jenkins_jobs/jenkins_jobs.ini src: files/etc/jenkins_jobs/jenkins_jobs.ini