1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2026-06-01 05:50:59 +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:
Matt Clay 2019-04-26 17:33:59 -07:00 committed by GitHub
parent 2feda390b5
commit 149336319a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
26 changed files with 117 additions and 201 deletions

View file

@ -3,8 +3,7 @@
copy: src="{{ test_pkcs12_path }}" dest="{{output_dir}}/{{ test_pkcs12_path }}"
- name: import pkcs12
local_action:
module: java_cert
java_cert:
pkcs12_path: "{{output_dir}}/{{ test_pkcs12_path }}"
pkcs12_password: changeit
pkcs12_alias: default
@ -20,8 +19,7 @@
- result_success is successful
- name: import pkcs12 with wrong password
local_action:
module: java_cert
java_cert:
pkcs12_path: "{{output_dir}}/{{ test_pkcs12_path }}"
pkcs12_password: wrong_pass
pkcs12_alias: default
@ -39,8 +37,7 @@
- result_wrong_pass is failed
- name: test fail on mutually exclusive params
local_action:
module: java_cert
java_cert:
cert_path: ca.crt
pkcs12_path: "{{output_dir}}/{{ test_pkcs12_path }}"
cert_alias: default