|
|
|
@ -36,14 +36,15 @@
|
|
|
|
|
('sudo password is incorrect' in out.msg)
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
- name: Ensure password sudo succeeds.
|
|
|
|
|
shell: whoami
|
|
|
|
|
become: true
|
|
|
|
|
become_user: mitogen__pw_required
|
|
|
|
|
register: out
|
|
|
|
|
vars:
|
|
|
|
|
ansible_become_pass: pw_required_password
|
|
|
|
|
# TODO: https://github.com/dw/mitogen/issues/692
|
|
|
|
|
# - name: Ensure password sudo succeeds.
|
|
|
|
|
# shell: whoami
|
|
|
|
|
# become: true
|
|
|
|
|
# become_user: mitogen__pw_required
|
|
|
|
|
# register: out
|
|
|
|
|
# vars:
|
|
|
|
|
# ansible_become_pass: pw_required_password
|
|
|
|
|
|
|
|
|
|
- assert:
|
|
|
|
|
that:
|
|
|
|
|
- out.stdout == 'mitogen__pw_required'
|
|
|
|
|
# - assert:
|
|
|
|
|
# that:
|
|
|
|
|
# - out.stdout == 'mitogen__pw_required'
|
|
|
|
|