Hello,
Below the information where ansible is installed
SERVER:
Virtualization: vmware
Operating System: Ubuntu 22.04.4 LTS
Kernel: Linux 5.15.0-118-generic
Architecture: x86-64
ANSIBLE:
ansible [core 2.17.6]
config file = /etc/ansible/ansible.cfg
configured module search path = [‘/var/lib/rundeck/.ansible/plugins/modules’, ‘/usr/share/ansible/plugins/modules’]
ansible python module location = /usr/lib/python3/dist-packages/ansible
ansible collection location = /var/lib/rundeck/.ansible/collections:/usr/share/ansible/collections
executable location = /usr/bin/ansible
python version = 3.10.12 (main, Nov 6 2024, 20:22:13) [GCC 11.4.0] (/usr/bin/python3)
jinja version = 3.0.3
libyaml = True
DESCRIPTION:
I copied my ssh public key from my user rundeck to my user of my servers ubuntu and redhat/centos
On my server rundeck When i try to connect with ssh on my servers (ubuntu and redhat/centos) it’s working
However when i’m using the command : ansible myser.mydomain -m ping -vvv
only ubuntu servers it’s correct the others one not working
Do you have an idea?
Below the result with error for redhat and centos:
myserver | FAILED! => {
“ansible_facts”: {
“discovered_interpreter_python”: “/usr/bin/python3”
},
“changed”: false,
“module_stderr”: “Shared connection to plbdd009.edit.gallimard.groupe closed.\r\n”,
“module_stdout”: “Traceback (most recent call last):\r\n File "/home/operateur/.ansible/tmp/ansible-tmp-1733318915.5148103-58959-103119498999386/AnsiballZ_setup.py", line 107, in \r\n _ansiballz_main()\r\n File "/home/operateur/.ansible/tmp/ansible-tmp-1733318915.5148103-58959-103119498999386/AnsiballZ_setup.py", line 99, in _ansiballz_main\r\n invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)\r\n File "/home/operateur/.ansible/tmp/ansible-tmp-1733318915.5148103-58959-103119498999386/AnsiballZ_setup.py", line 44, in invoke_module\r\n from ansible.module_utils import basic\r\n File "", line 971, in _find_and_load\r\n File "", line 951, in _find_and_load_unlocked\r\n File "", line 894, in _find_spec\r\n File "", line 1157, in find_spec\r\n File "", line 1131, in _get_spec\r\n File "", line 1112, in _legacy_get_spec\r\n File "", line 441, in spec_from_loader\r\n File "", line 544, in spec_from_file_location\r\n File "/tmp/ansible_ansible.builtin.setup_payload_auvrazzd/ansible_ansible.builtin.setup_payload.zip/ansible/module_utils/basic.py", line 5\r\nSyntaxError: future feature annotations is not defined\r\n”,
“msg”: “MODULE FAILURE\nSee stdout/stderr for the exact error”,
“rc”: 1
}
Thanks in advance for your help