Skip to content

Commit

Permalink
DNM: debug
Browse files Browse the repository at this point in the history
  • Loading branch information
Spredzy committed Oct 8, 2018
1 parent 47139a0 commit d315802
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions playbooks/clean-static-node.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,32 @@
---
- hosts: all
tasks:
- name: Test
debug: '{{ hosts.static.nodepool.label }}'

- name: Display current version
shell: cat .git/HEAD
args:
chdir: "{{ ansible_user_dir }}/{{ zuul.project.src_dir }}"

- name: Checkout force
shell: git checkout -f '{{ zuul.ref }}'
args:
chdir: "{{ ansible_user_dir }}/{{ zuul.project.src_dir }}"

- name: Display current version
shell: cat .git/HEAD
args:
chdir: "{{ ansible_user_dir }}/{{ zuul.project.src_dir }}"

- name: List current files
shell: ls -lR
args:
chdir: "{{ ansible_user_dir }}/{{ zuul.project.src_dir }}"

- name: Clean out old project artifacts
shell: make docker-compose-clean && make clean
args:
chdir: "{{ ansible_user_dir }}/{{ zuul.project.src_dir }}"
removes: "awx.egg-info"

0 comments on commit d315802

Please sign in to comment.