summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Belanger <pabelanger@redhat.com>2016-03-01 19:13:53 -0500
committerPaul Belanger <pabelanger@redhat.com>2016-03-01 19:33:28 -0500
commita66fbaa7dd25f61ea76c26a956fc528417ccd57b (patch)
tree454b8bea77ab7c42c109a924d4d99ed75d2feeef
parent50b7894ade7ad77035a45b68b7a589b089a4dfe1 (diff)
Reduce usage of becomes for testing
Change-Id: I481c430310f4a4d91d00a6aad8892e3d848f6531 Signed-off-by: Paul Belanger <pabelanger@redhat.com>
Notes
Notes (review): Code-Review+2: Paul Belanger <pabelanger@redhat.com> Workflow+1: Paul Belanger <pabelanger@redhat.com> Verified+2: Jenkins Submitted-by: Jenkins Submitted-at: Wed, 02 Mar 2016 13:54:11 +0000 Reviewed-on: https://review.openstack.org/286917 Project: openstack/ansible-role-jenkins-job-builder Branch: refs/heads/master
-rw-r--r--tests/test.yaml3
1 files changed, 2 insertions, 1 deletions
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 @@
13# under the License. 13# under the License.
14--- 14---
15- hosts: test 15- hosts: test
16 become: yes
17 vars: 16 vars:
18 rolename: "{{ lookup('pipe', 'pwd') | dirname | basename }}" 17 rolename: "{{ lookup('pipe', 'pwd') | dirname | basename }}"
19 pre_tasks: 18 pre_tasks:
20 # Make sure OS does not have a stale package cache. 19 # Make sure OS does not have a stale package cache.
21 - name: Update apt cache. 20 - name: Update apt cache.
21 become: yes
22 apt: 22 apt:
23 update_cache: yes 23 update_cache: yes
24 when: ansible_os_family == 'Debian' 24 when: ansible_os_family == 'Debian'
@@ -56,6 +56,7 @@
56 - jenkins_jobs_ini_stat.stat.mode == '0440' 56 - jenkins_jobs_ini_stat.stat.mode == '0440'
57 57
58 - name: Ensure jenkins_jobs.ini was templated. 58 - name: Ensure jenkins_jobs.ini was templated.
59 become: true
59 copy: 60 copy:
60 dest: /etc/jenkins_jobs/jenkins_jobs.ini 61 dest: /etc/jenkins_jobs/jenkins_jobs.ini
61 src: files/etc/jenkins_jobs/jenkins_jobs.ini 62 src: files/etc/jenkins_jobs/jenkins_jobs.ini