Closed rmarting closed 1 month ago
The local configuration of ansible is (ansible.cfg
file):
[defaults]
host_key_checking = False
retry_files_enabled = False
nocows = 1
[inventory]
# fail more helpfully when the inventory file does not parse (Ansible 2.4+)
unparsed_is_failed = true
[galaxy]
server_list = automation_hub,galaxy
[galaxy_server.galaxy]
url = https://galaxy.ansible.com/
[galaxy_server.automation_hub]
url = https://cloud.redhat.com/api/automation-hub/
auth_url = https://sso.redhat.com/auth/realms/redhat-external/protocol/openid-connect/token
token = ***************************************************
[privilege_escalation]
become = true
become_method = sudo
become_ask_pass = true
you problem is on the controller (localhost) not the target host (ie. it's trying to escalate to read from /tmp/). One workaround is to run on the controller with a no password sudoer. Also wierd that it timeout waiting for the sudo password, did you get the prompt at all?
I am using my own laptop (with my own user), as I usually do with other collections (e.g.: amq_streams), just because I did not get any issue. It seems that the offline installation between amq_streams
and activemq
collections are different.
I am not getting any prompt, so after sometime I got the error.
SUMMARY
The offline installation is falling when the playbook is trying to check the local download archive path with an exception related to an incorrect password. The local user used to execute the playbook is different to the remote user to connect to the remote servers.
Full stack trace:
ISSUE TYPE
ANSIBLE VERSION
COLLECTION VERSION
STEPS TO REPRODUCE
The playbook is executed from a laptop to install into 2 virtual machines running the amq broker binaries. Before running the playbook, a copy of the binaries was copied into the
/tmp
folder of the local server, it was also copied into the/tmp
folder of each VM. In all the cases the issue was the same:The user to connect to the remote VM is different from the user connected into the local server where the playbook is executed.
EXPECTED RESULTS
Offline intallation using the remote_user to connect to the remote servers and coping the local binary from the bastion without any issue.
ACTUAL RESULTS
Installation failing with an error in the
Check local download archive path
: