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