-
Bug
-
Resolution: Unresolved
-
Major
-
None
-
rhel-10.0.beta
-
Yes
-
Important
-
rhel-sst-ansible
-
None
-
False
-
-
None
-
Red Hat Enterprise Linux
-
None
-
None
-
None
-
-
All
-
None
What were you trying to do that didn't work?
Ansible ssh connection with password needs package sshpass that is missing from rhel 10. We can't bootstrap ssh keypairs if we can't connect with password first. This seriously harms ansible usability.
2024-08-19T14:15:20 fatal: [controller]: FAILED! => changed=false
2024-08-19T14:15:20 cmd: |-
2024-08-19T14:15:20 ansible-playbook -vvv -i /tmp/inventory.yaml tests_full_integration.yml
2024-08-19T14:15:20 delta: '0:00:00.596647'
2024-08-19T14:15:20 end: '2024-08-19 10:15:19.509670'
2024-08-19T14:15:20 msg: non-zero return code
2024-08-19T14:15:20 rc: 2
2024-08-19T14:15:20 start: '2024-08-19 10:15:18.913023'
2024-08-19T14:15:20 stderr: ''
2024-08-19T14:15:20 stderr_lines: <omitted>
2024-08-19T14:15:20 stdout: |-
2024-08-19T14:15:20 ansible-playbook [core 2.16.3]
2024-08-19T14:15:20 config file = /etc/ansible/ansible.cfg
2024-08-19T14:15:20 configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
2024-08-19T14:15:20 ansible python module location = /usr/lib/python3.12/site-packages/ansible
2024-08-19T14:15:20 ansible collection location = /root/.ansible/collections:/usr/share/ansible/collections
2024-08-19T14:15:20 executable location = /usr/bin/ansible-playbook
2024-08-19T14:15:20 python version = 3.12.5 (main, Aug 7 2024, 00:00:00) [GCC 14.1.1 20240607 (Red Hat 14.1.1-5)] (/usr/bin/python3)
2024-08-19T14:15:20 jinja version = 3.1.4
2024-08-19T14:15:20 libyaml = True
2024-08-19T14:15:20 Using /etc/ansible/ansible.cfg as config file
2024-08-19T14:15:20 host_list declined parsing /tmp/inventory.yaml as it did not pass its verify_file() method
2024-08-19T14:15:20 script declined parsing /tmp/inventory.yaml as it did not pass its verify_file() method
2024-08-19T14:15:20 Parsed /tmp/inventory.yaml inventory source with yaml plugin
2024-08-19T14:15:20 Skipping callback 'default', as we already have a stdout callback.
2024-08-19T14:15:20 Skipping callback 'minimal', as we already have a stdout callback.
2024-08-19T14:15:20 Skipping callback 'oneline', as we already have a stdout callback.
2024-08-19T14:15:20
2024-08-19T14:15:20 PLAYBOOK: tests_full_integration.yml *******************************************
2024-08-19T14:15:20 3 plays in tests_full_integration.yml
2024-08-19T14:15:20
2024-08-19T14:15:20 PLAY [Set variables] ***********************************************************
2024-08-19T14:15:20
2024-08-19T14:15:20 TASK [Gathering Facts] *********************************************************
2024-08-19T14:15:20 task path: /usr/share/ansible/roles/rhel-system-roles.ad_integration/tests/tests_full_integration.yml:18
2024-08-19T14:15:20 <10.0.198.116> ESTABLISH SSH CONNECTION FOR USER: None
2024-08-19T14:15:20 fatal: [client1]: FAILED! => {
2024-08-19T14:15:20 "msg": "to use the 'ssh' connection type with passwords or pkcs11_provider, you must install the sshpass program"
2024-08-19T14:15:20 }
2024-08-19T14:15:20
2024-08-19T14:15:20 PLAY RECAP *********************************************************************
2024-08-19T14:15:20 client1 : ok=0 changed=0 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0
2024-08-19T14:15:20 stdout_lines: <omitted>
Please provide the package NVR for which bug is seen:
ansible-core-2.16.3-3.el10.noarch.rpm
How reproducible:
always
Steps to reproduce
- Use inventory that specifies ssh password
- Try to run a playbook with the inventory on
Expected results
The password is used an playbook is executed.
Actual results
Execution fails with:
"msg": "to use the 'ssh' connection type with passwords or pkcs11_provider, you must install the sshpass program"