mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 22:02:50 +00:00
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:
@@ -1,3 +1,4 @@
|
||||
dependencies:
|
||||
- prepare_tests
|
||||
- setup_rpm_repo
|
||||
- setup_remote_tmp_dir
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user