mirror of
https://github.com/ansible/awx.git
synced 2026-03-31 15:55:07 -02:30
20 lines
510 B
YAML
20 lines
510 B
YAML
---
|
|
|
|
# The following variables will be set by the runner of this playbook:
|
|
# cleanup_dirs: ['/tmp/path/private_data_dir/', '/tmp//path/proot_temp_dir/']
|
|
# private_data_dir: '/tmp/path/private_data_dir/'
|
|
|
|
- name: Clean up from isolated job run.
|
|
hosts: all
|
|
gather_facts: false
|
|
|
|
tasks:
|
|
|
|
- name: cancel the job
|
|
command: "awx-expect stop {{private_data_dir}}"
|
|
ignore_errors: yes
|
|
|
|
- name: remove build artifacts
|
|
file: path="{{item}}" state=absent
|
|
with_items: "{{cleanup_dirs}}"
|