Skip to content

Commit

Permalink
base-minimal: Clean env when static-ansible
Browse files Browse the repository at this point in the history
  • Loading branch information
Spredzy committed Oct 8, 2018
1 parent 30cbae3 commit 4517a91
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions playbooks/base-minimal/pre.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,6 @@

- hosts: all
roles:
- clean-awx-environment
- prepare-workspace
- role: validate-host
5 changes: 5 additions & 0 deletions roles/clean-awx-environment/tasks/main.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
- name: Remove {{ ansible_user_dir }}/{{ zuul.project.src_dir }}
file:
path: "{{ ansible_user_dir }}/{{ zuul.project.src_dir }}"
state: absent
when: hosts.static.nodepool.label == 'static-ansible'

0 comments on commit 4517a91

Please sign in to comment.