I tried that and also set no_log to “true” in the relevant places, but it unfortunately didn’t give me anything additional and useful surrounding the actual failure. This is the end of my output
`
TASK [connection : Warn about change in host keys] *******************************************************************************************
skipping: [production_host] => {“changed”: false, “false_condition”: “‘REMOTE HOST IDENTIFICATION HAS CHANGED’ in connection_status.stdout”, “skip_reason”: “Conditional result was False”}
TASK [connection : Set remote user for each host] ********************************************************************************************
ok: [production_host] => {“ansible_facts”: {“ansible_user”: “[MY_SPECIFIED_USER]”}, “changed”: false}
TASK [connection : Announce which user was selected] *****************************************************************************************
ok: [production_host] => {
“msg”: “Note: Ansible will attempt connections as user =[MY_SPECIFIED_USER]\n”
}
TASK [connection : Load become password] *****************************************************************************************************
ok: [production_host] => {“ansible_facts”: {“ansible_become_pass”: “{% for user in vault_users | default() if user.name == ansible_user %}{{ user.password | default(‘’) }}{% endfor %}”}, “changed”: false}
PLAY [WordPress Server - Install LEMP Stack with PHP and MariaDB MySQL] **********************************************************************
TASK [Gathering Facts] ***********************************************************************************************************************
fatal: [production_host]: FAILED! => {“ansible_facts”: {}, “changed”: false, “failed_modules”: {“ansible.legacy.setup”: {“ansible_facts”: {“discovered_interpreter_python”: “/usr/bin/python”}, “failed”: true, “module_stderr”: “sudo: sorry, you must have a tty to run sudo\n”, “module_stdout”: “”, “msg”: “MODULE FAILURE\nSee stdout/stderr for the exact error”, “rc”: 1}}, “msg”: “The following modules failed to execute: ansible.legacy.setup\n”}
PLAY RECAP ***********************************************************************************************************************************
localhost : ok=0 changed=0 unreachable=0 failed=0 skipped=1 rescued=0 ignored=0
production_host : ok=4 changed=0 unreachable=0 failed=1 skipped=2 rescued=0 ignored=0
`