fixed ansible_become_pass test, looks like regression on Ansible's end

pull/715/head
Steven Robertson 4 years ago
parent b469da399b
commit 9f04d6713b

@ -113,7 +113,8 @@
# ansible_become_pass & ansible_become_password set, password takes precedence
# ansible_become_pass & ansible_become_password set, password used to take precedence
# but it's possible since https://github.com/ansible/ansible/pull/69629/files#r428376864, now it doesn't
- hosts: tc-become-pass-both
become: true
tasks:
@ -124,7 +125,7 @@
- out.result|length == 2
- out.result[0].method == "ssh"
- out.result[1].method == "sudo"
- out.result[1].kwargs.password == "a.b.c"
- out.result[1].kwargs.password == "c.b.a"
# both, mitogen_via
@ -135,7 +136,7 @@
- {mitogen_get_stack: {}, register: out}
- assert:
that:
- out.result|length == 3
- out.result|length == 4
- out.result[0].method == "ssh"
- out.result[1].method == "sudo"
- out.result[1].kwargs.password == "a.b.c"

Loading…
Cancel
Save