You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
507 B
YAML
23 lines
507 B
YAML
6 years ago
|
|
||
|
# Current working directory should be that of WorkerProcess -- which is the
|
||
|
# same directory as the currently executing playbook, i.e. integration/local/
|
||
|
#
|
||
|
# https://github.com/ansible/ansible/issues/14489
|
||
|
|
||
|
- name: integration/local/cwd_preserved.yml
|
||
|
any_errors_fatal: true
|
||
|
hosts: test-targets
|
||
|
tasks:
|
||
|
- connection: local
|
||
|
command: pwd
|
||
|
register: pwd
|
||
|
|
||
|
- connection: local
|
||
|
stat:
|
||
|
path: "{{pwd.stdout}}/cwd_preserved.yml"
|
||
|
register: stat
|
||
|
|
||
|
- assert:
|
||
|
that: stat.stat.exists
|
||
|
|