|
|
|
|
@ -16,6 +16,12 @@
|
|
|
|
|
ansible_ssh_pass: user1_password
|
|
|
|
|
ping:
|
|
|
|
|
|
|
|
|
|
- meta: reset_connection
|
|
|
|
|
- name: ansible_ssh_password
|
|
|
|
|
vars:
|
|
|
|
|
ansible_ssh_password: user1_password
|
|
|
|
|
ping:
|
|
|
|
|
|
|
|
|
|
- meta: reset_connection
|
|
|
|
|
- name: absent password should fail
|
|
|
|
|
ping:
|
|
|
|
|
@ -34,13 +40,22 @@
|
|
|
|
|
ansible_password: wrong
|
|
|
|
|
ansible_ssh_pass: user1_password
|
|
|
|
|
|
|
|
|
|
# Tests that ansible_ssh_pass has priority over ansible_password
|
|
|
|
|
- meta: reset_connection
|
|
|
|
|
- name: Highest priority password variable should override all others
|
|
|
|
|
vars:
|
|
|
|
|
ansible_password: wrong
|
|
|
|
|
ansible_ssh_pass: wrong
|
|
|
|
|
ansible_ssh_password: user1_password
|
|
|
|
|
ping:
|
|
|
|
|
|
|
|
|
|
# Tests that ansible_ssh_password has priority over others
|
|
|
|
|
# and that a wrong password causes a target to be marked unreachable.
|
|
|
|
|
- meta: reset_connection
|
|
|
|
|
- name: ansible_password should not override
|
|
|
|
|
- name: Lower priority password variables should not override
|
|
|
|
|
vars:
|
|
|
|
|
ansible_password: user1_password
|
|
|
|
|
ansible_ssh_pass: wrong
|
|
|
|
|
ansible_ssh_pass: user1_password
|
|
|
|
|
ansible_ssh_password: wrong
|
|
|
|
|
ping:
|
|
|
|
|
ignore_errors: true
|
|
|
|
|
ignore_unreachable: true
|
|
|
|
|
|