mirror of
https://github.com/ansible/awx.git
synced 2026-05-20 07:17:40 -02:30
add copy to modules
This commit is contained in:
@@ -203,6 +203,29 @@
|
||||
that:
|
||||
- result is not changed
|
||||
|
||||
- name: Copy ssh Credential
|
||||
tower_credential:
|
||||
name: "copy_{{ ssh_cred_name2 }}"
|
||||
copy_from: "{{ ssh_cred_name2 }}"
|
||||
credential_type: Machine
|
||||
register: result
|
||||
|
||||
- assert:
|
||||
that:
|
||||
- result is changed
|
||||
|
||||
- name: Delete an SSH credential
|
||||
tower_credential:
|
||||
name: "copy_{{ ssh_cred_name2 }}"
|
||||
organization: Default
|
||||
state: absent
|
||||
credential_type: Machine
|
||||
register: result
|
||||
|
||||
- assert:
|
||||
that:
|
||||
- "result is changed"
|
||||
|
||||
- name: Create a valid SSH credential from lookup source (old school)
|
||||
tower_credential:
|
||||
name: "{{ ssh_cred_name3 }}"
|
||||
@@ -369,7 +392,7 @@
|
||||
- result is failed
|
||||
- "'Unable to create credential {{ vault_cred_name2 }}' in result.msg"
|
||||
- "'Additional properties are not allowed' in result.msg"
|
||||
- "'\\'vault_password\\' was unexpected' in result.msg"
|
||||
- "'\\'vault_********\\' was unexpected' in result.msg"
|
||||
|
||||
- name: Delete a Vault credential
|
||||
tower_credential:
|
||||
|
||||
Reference in New Issue
Block a user