mirror of
https://github.com/ansible/awx.git
synced 2026-03-03 01:38:50 -03:30
the main goal of this change is to make `make docker-isolated` work out
of the box
- specify the proper version for awx-expect --version
- update some deprecated playbook bits
- change the isolated container to privileged so bwrap will work
- fix awx-manage test_isolated_connection
- expedite the first isolated heartbeat so you don't have to wait 10m;
this is accomplished by _not_ setting Instance.last_isolated_check to
now() at insertion time (which causes the next check not to happen for
10 minutes)
- fix a bug that caused isolated node execution to fail when bwrap was
enabled
see: https://github.com/ansible/tower/issues/2150
This reverts commit 9863fe71dc.
30 lines
774 B
YAML
30 lines
774 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
|
|
register: result
|
|
with_items: "{{cleanup_dirs}}"
|
|
until: result is succeeded
|
|
ignore_errors: yes
|
|
retries: 3
|
|
delay: 5
|
|
|
|
- name: fail if build artifacts were not cleaned
|
|
fail:
|
|
msg: 'Unable to cleanup build artifacts'
|
|
when: not result is succeeded
|