I’m trying to figure out why this is happening. The local connection is MacOS Catalina, and the remote is Alpine Linux 12.
Either way I try this (locally or remote) it seems to have the same problem. Thanks in advance!
┌[kiwish-4.2]-(awx/installer)-[git:13_installer*]-[76%]
└> ansible-playbook -u markh --ask-become-pass -i inventory install.yml -vvv
ansible-playbook 2.9.11
config file = /Users/mhorninger/projects/dominion-solutions/awx/installer/ansible.cfg
configured module search path = [‘/Users/mhorninger/.ansible/plugins/modules’, ‘/usr/share/ansible/plugins/modules’]
ansible python module location = /usr/local/lib/python3.8/site-packages/ansible
executable location = /usr/local/bin/ansible-playbook
python version = 3.8.5 (default, Jul 21 2020, 10:48:26) [Clang 11.0.3 (clang-1103.0.32.62)]
Using /Users/mhorninger/projects/dominion-solutions/awx/installer/ansible.cfg as config file
BECOME password:
host_list declined parsing /Users/mhorninger/projects/dominion-solutions/awx/installer/inventory as it did not pass its verify_file() method
script declined parsing /Users/mhorninger/projects/dominion-solutions/awx/installer/inventory as it did not pass its verify_file() method
auto declined parsing /Users/mhorninger/projects/dominion-solutions/awx/installer/inventory as it did not pass its verify_file() method
Parsed /Users/mhorninger/projects/dominion-solutions/awx/installer/inventory inventory source with ini plugin
statically imported: /Users/mhorninger/projects/dominion-solutions/awx/installer/roles/local_docker/tasks/upgrade_postgres.yml
[DEPRECATION WARNING]: docker_service is kept for backwards compatibility but usage is discouraged. The module documentation details page may explain more about this rationale… This feature will be removed in a future release. Deprecation warnings can be disabled by setting
deprecation_warnings=False in ansible.cfg.
statically imported: /Users/mhorninger/projects/dominion-solutions/awx/installer/roles/local_docker/tasks/set_image.yml
statically imported: /Users/mhorninger/projects/dominion-solutions/awx/installer/roles/local_docker/tasks/compose.yml
PLAYBOOK: install.yml ****************************************************************************************************************************************************************************************************************************************************************
1 plays in install.yml
PLAY [Build and deploy AWX] **********************************************************************************************************************************************************************************************************************************************************
TASK [Gathering Facts] ***************************************************************************************************************************************************************************************************************************************************************
task path: /Users/mhorninger/projects/dominion-solutions/awx/installer/install.yml:2
<192.168.88.10> ESTABLISH SSH CONNECTION FOR USER: markh
<192.168.88.10> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ‘User=“markh”’ -o ConnectTimeout=10 -o ControlPath=/Users/mhorninger/.ansible/cp/ad227640a4 192.168.88.10 ‘/usr/bin/env ash -c ‘"’“‘echo ~markh && sleep 0’”’"‘’
<192.168.88.10> (0, b’/home/markh\n’, b’')
<192.168.88.10> ESTABLISH SSH CONNECTION FOR USER: markh
<192.168.88.10> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ‘User=“markh”’ -o ConnectTimeout=10 -o ControlPath=/Users/mhorninger/.ansible/cp/ad227640a4 192.168.88.10 ‘/usr/bin/env ash -c ‘"’"’( umask 77 && mkdir -p “echo /home/markh/.ansible/tmp
”&& mkdir /home/markh/.ansible/tmp/ansible-tmp-1596142461.5403461-6592-165134273621536 && echo ansible-tmp-1596142461.5403461-6592-165134273621536=“echo /home/markh/.ansible/tmp/ansible-tmp-1596142461.5403461-6592-165134273621536
” ) && sleep 0’“'”‘’
<192.168.88.10> (0, b’ansible-tmp-1596142461.5403461-6592-165134273621536=/home/markh/.ansible/tmp/ansible-tmp-1596142461.5403461-6592-165134273621536\n’, b’')
Using module file /usr/local/lib/python3.8/site-packages/ansible/modules/~indows/setup.ps1
<192.168.88.10> PUT /Users/mhorninger/.ansible/tmp/ansible-local-6587va5c8_e5/tmp0c6h5g_q TO /home/markh/.ansible/tmp/ansible-tmp-1596142461.5403461-6592-165134273621536/AnsiballZ_setup.ps1
<192.168.88.10> SSH: EXEC sftp -b - -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ‘User=“markh”’ -o ConnectTimeout=10 -o ControlPath=/Users/mhorninger/.ansible/cp/ad227640a4 ‘[192.168.88.10]’
<192.168.88.10> (0, b’sftp> put /Users/mhorninger/.ansible/tmp/ansible-local-6587va5c8_e5/tmp0c6h5g_q /home/markh/.ansible/tmp/ansible-tmp-1596142461.5403461-6592-165134273621536/AnsiballZ_setup.ps1\n’, b’')
<192.168.88.10> ESTABLISH SSH CONNECTION FOR USER: markh
<192.168.88.10> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ‘User=“markh”’ -o ConnectTimeout=10 -o ControlPath=/Users/mhorninger/.ansible/cp/ad227640a4 192.168.88.10 ‘/usr/bin/env ash -c ‘"’“‘chmod u+x /home/markh/.ansible/tmp/ansible-tmp-1596142461.5403461-6592-165134273621536/ /home/markh/.ansible/tmp/ansible-tmp-1596142461.5403461-6592-165134273621536/AnsiballZ_setup.ps1 && sleep 0’”’"‘’
<192.168.88.10> (0, b’‘, b’')
<192.168.88.10> ESTABLISH SSH CONNECTION FOR USER: markh
<192.168.88.10> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ‘User=“markh”’ -o ConnectTimeout=10 -o ControlPath=/Users/mhorninger/.ansible/cp/ad227640a4 -tt 192.168.88.10 ‘/usr/bin/env ash -c ‘"’“‘powershell /home/markh/.ansible/tmp/ansible-tmp-1596142461.5403461-6592-165134273621536/AnsiballZ_setup.ps1 && sleep 0’”’"‘’
<192.168.88.10> (127, b’ash: powershell: not found\r\n’, b’Shared connection to 192.168.88.10 closed.\r\n’)
<192.168.88.10> Failed to connect to the host via ssh: Shared connection to 192.168.88.10 closed.
<192.168.88.10> ESTABLISH SSH CONNECTION FOR USER: markh
<192.168.88.10> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ‘User=“markh”’ -o ConnectTimeout=10 -o ControlPath=/Users/mhorninger/.ansible/cp/ad227640a4 192.168.88.10 ‘/usr/bin/env ash -c ‘"’“‘rm -f -r /home/markh/.ansible/tmp/ansible-tmp-1596142461.5403461-6592-165134273621536/ > /dev/null 2>&1 && sleep 0’”’"‘’
<192.168.88.10> (0, b’‘, b’')
fatal: [192.168.88.10]: FAILED! => {
“ansible_facts”: {},
“changed”: false,
“failed_modules”: {
“setup”: {
“failed”: true,
“module_stderr”: “Shared connection to 192.168.88.10 closed.\r\n”,
“module_stdout”: “ash: powershell: not found\r\n”,
“msg”: “The module failed to execute correctly, you probably need to set the interpreter.\nSee stdout/stderr for the exact error”,
“rc”: 127
}
},
“msg”: “The following modules failed to execute: setup\n”
}
PLAY RECAP ***************************************************************************************************************************************************************************************************************************************************************************
192.168.88.10 : ok=0 changed=0 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0
(attachments)
ansible.cfg (39 Bytes)
inventory (4.75 KB)