Skip to content

Commit

Permalink
adding a chmod command to template genration to ensure build hosts ca…
Browse files Browse the repository at this point in the history
…n clear out files
  • Loading branch information
thelamer committed Dec 19, 2018
1 parent 39c4f37 commit 1f706af
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions roles/generate-jenkins/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,9 @@
src: ../templates/Jenkinsfile.j2
dest: "/tmp/GENERATED.Jenkinsfile"
delegate_to: localhost

- name: Allow non root host to delete temp files
when:
- lookup('env', 'LOCAL') != "true"
command: chmod -R 777 /ansible/jenkins
delegate_to: localhost

0 comments on commit 1f706af

Please sign in to comment.