diff options
author | Matt Clay <matt@mystile.com> | 2019-04-26 17:33:59 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-26 17:33:59 -0700 |
commit | 149336319a075edaadd299badb2ed46fad3c95ff (patch) | |
tree | 06557b17cf1c03a1bac4bcb6885a0db7310dfba9 /test/integration/targets/tower_credential | |
parent | 2feda390b5372b06e786b96941d98267830e9de0 (diff) | |
download | ansible-149336319a075edaadd299badb2ed46fad3c95ff.tar.gz |
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.
Diffstat (limited to 'test/integration/targets/tower_credential')
-rw-r--r-- | test/integration/targets/tower_credential/tasks/main.yml | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/test/integration/targets/tower_credential/tasks/main.yml b/test/integration/targets/tower_credential/tasks/main.yml index 20631bfdd0..231b561816 100644 --- a/test/integration/targets/tower_credential/tasks/main.yml +++ b/test/integration/targets/tower_credential/tasks/main.yml @@ -1,9 +1,11 @@ - name: create a tempdir for an SSH key - local_action: shell mktemp -d + shell: mktemp -d + delegate_to: localhost register: tempdir - name: Generate a local SSH key - local_action: "shell ssh-keygen -b 2048 -t rsa -f {{ tempdir.stdout }}/id_rsa -q -N 'passphrase'" + shell: "ssh-keygen -b 2048 -t rsa -f {{ tempdir.stdout }}/id_rsa -q -N 'passphrase'" + delegate_to: localhost - name: Read the generated key set_fact: |