Clean up local_action and delegate_to in tests. (#55835)

* Remove unnecessary delegate_to in tests.

* Remove incorrect delegate_to in tests.

* Remove unnecessary use of local_action in tests.

* Remove incorrect use of local_action in tests.

* Remove unnecessary use of local_action in tests.

* Remove incorrect use of local_action in tests.

* Remove unnecessary use of local_action in tests.

* Use delegate_to instead of local_action in tests.

* Use setup_remote_tmp_dir instead of TMPDIR.
This commit is contained in:
Matt Clay
2019-04-26 17:33:59 -07:00
committed by GitHub
parent 2feda390b5
commit 149336319a
26 changed files with 117 additions and 201 deletions

View File

@@ -1,3 +1,4 @@
dependencies:
- prepare_tests
- setup_rpm_repo
- setup_remote_tmp_dir

View File

@@ -1,7 +1,6 @@
# make a installroot
- name: Create installroot
local_action:
module: command mktemp -d "{{ lookup('env', 'TMPDIR') | default('/tmp', true) }}/ansible.test.XXXXXX"
command: mktemp -d "{{ remote_tmp_dir }}/ansible.test.XXXXXX"
register: dnfroot
- name: Make a necessary directory

View File

@@ -1,7 +1,6 @@
# make an installroot
- name: Create installroot
local_action:
module: command mktemp -d "{{lookup('env', 'TMPDIR') | default('/tmp', true)}}/ansible.test.XXXXXX"
command: mktemp -d "{{ remote_tmp_dir }}/ansible.test.XXXXXX"
register: dnfroot
- name: Make a necessary directory