Playbook fails when using ansible-navigator but works when using ansible-playbook
Forgive me if something simple. I normally only deal with network equipment, but I do have a few linux servers setup in a lab that I use for testing. I’m working on converting all of my playbooks over to use execution environments rather than virtual environments. I have the below simple playbook named testee.yml
---
- name: Test EE
hosts: labpostgresqlpri
gather_facts: true
become: true
tasks:
- name: Display Facts
ansible.builtin.debug:
msg: "{{ ansible_facts }}"
When running the playbook with the below command in my venv, everything works fine and facts are gathered
ansible-playbook testee.yml
However, if I run the playbook with command
ansible-navigator run testee.yml
I get the below error
"msg": "Failed to connect to the host via ssh: Warning: Permanently added '10.157.30.10' (ED25519) to the list of known hosts.\r\nmuxserver_listen: link mux listener /runner/.ansible/cp/f14c1f486c.gJF2W84mz59ox16y => /runner/.ansible/cp/f14c1f486c: Bad file descriptor"
Full Error Output
<10.157.30.10> ESTABLISH SSH CONNECTION FOR USER: mjbright
<10.157.30.10> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile="/home/runner/.ssh/id_rsa"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o 'User="mjbright"' -o ConnectTimeout=10 -o 'ControlPath="/runner/.ansible/cp/f14c1f486c"' 10.157.30.10 '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo /tmp `"&& mkdir "` echo /tmp/ansible-tmp-1712064682.7009747-20-45230970465614 `" && echo ansible-tmp-1712064682.7009747-20-45230970465614="` echo /tmp/ansible-tmp-1712064682.7009747-20-45230970465614 `" ) && sleep 0'"'"''
<10.157.30.10> (255, b'', b"Warning: Permanently added '10.157.30.10' (ED25519) to the list of known hosts.\r\nmuxserver_listen: link mux listener /runner/.ansible/cp/f14c1f486c.gJF2W84mz59ox16y => /runner/.ansible/cp/f14c1f486c: Bad file descriptor\r\n")
fatal: [labpostgresqlpri]: UNREACHABLE! => {
"changed": false,
"msg": "Failed to connect to the host via ssh: Warning: Permanently added '10.157.30.10' (ED25519) to the list of known hosts.\r\nmuxserver_listen: link mux listener /runner/.ansible/cp/f14c1f486c.gJF2W84mz59ox16y => /runner/.ansible/cp/f14c1f486c: Bad file descriptor",
"unreachable": true
}
Ansible Version
ansible-playbook [core 2.15.5]
config file = /Users/mjbright/Documents/projects/production_projects/ansible/tb_server_mgmt/ansible.cfg
configured module search path = ['/runner/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /usr/lib/python3.9/site-packages/ansible
ansible collection location = /runner/.ansible/collections:/usr/share/ansible/collections
executable location = /usr/bin/ansible-playbook
python version = 3.9.16 (main, Sep 12 2023, 00:00:00) [GCC 11.3.1 20221121 (Red Hat 11.3.1-4)] (/usr/bin/python3)
jinja version = 3.1.2
libyaml = True
I have searched high and low and can’t find anything referencing this error. What does this error mean? Host is an Ubuntu Server