|
|
|
@ -21,16 +21,17 @@
|
|
|
|
|
|
|
|
|
|
# ---------------
|
|
|
|
|
|
|
|
|
|
- name: Verify we can login to a passworded requiretty account
|
|
|
|
|
shell: whoami
|
|
|
|
|
become: true
|
|
|
|
|
become_user: mitogen__require_tty_pw_required
|
|
|
|
|
vars:
|
|
|
|
|
ansible_become_pass: require_tty_pw_required_password
|
|
|
|
|
register: out
|
|
|
|
|
when: is_mitogen
|
|
|
|
|
# TODO: https://github.com/dw/mitogen/issues/692
|
|
|
|
|
# - name: Verify we can login to a passworded requiretty account
|
|
|
|
|
# shell: whoami
|
|
|
|
|
# become: true
|
|
|
|
|
# become_user: mitogen__require_tty_pw_required
|
|
|
|
|
# vars:
|
|
|
|
|
# ansible_become_pass: require_tty_pw_required_password
|
|
|
|
|
# register: out
|
|
|
|
|
# when: is_mitogen
|
|
|
|
|
|
|
|
|
|
- assert:
|
|
|
|
|
that:
|
|
|
|
|
- out.stdout == 'mitogen__require_tty_pw_required'
|
|
|
|
|
when: is_mitogen
|
|
|
|
|
# - assert:
|
|
|
|
|
# that:
|
|
|
|
|
# - out.stdout == 'mitogen__require_tty_pw_required'
|
|
|
|
|
# when: is_mitogen
|
|
|
|
|