Hi Florian, please update to the current version of ansible, where this bug is fixed. This is a duplicate of #970422.
Regards, Lee On 15/05/2021 11:06, Florian Lohoff wrote: > Package: ansible > Version: 2.9.16+dfsg-1.1 > Severity: important > > > Hi, > this ansible version ships with a broken symlink in > /usr/bin/ansible-connection pointing to: > > flo@p5:/usr/bin$ ls -la ansible-connection > lrwxrwxrwx 1 root root 57 Jan 6 11:56 ansible-connection -> > ../lib/ansible/cli/scripts/ansible_connection_cli_stub.py > > which does not exist. This connection for example > routeros targets fails with: > > task path: /home/flo/projects/customer/routeros/playbook.yml:2 > fatal: [ros1]: FAILED! => { > "msg": "Unable to find location of 'ansible-connection'. Please set or > check the value of ANSIBLE_CONNECTION_PATH" > } > > > I fixed it with: > > flo@p5:/usr/bin$ sudo rm ansible-connection > flo@p5:/usr/bin$ sudo ln -s > ../lib/python3/dist-packages/ansible/cli/scripts/ansible_connection_cli_stub.py > ansible-connection > > -- System Information: > Debian Release: bullseye/sid > APT prefers testing-security > APT policy: (500, 'testing-security'), (500, 'testing') > Architecture: amd64 (x86_64) > > Kernel: Linux 5.10.0-6-amd64 (SMP w/16 CPU threads) > Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE > Locale: LANG=en_US.UTF-8, LC_CTYPE=de_DE.utf-8 (charmap=UTF-8), > LANGUAGE=en_US:en > Shell: /bin/sh linked to /usr/bin/dash > Init: systemd (via /run/systemd/system) > LSM: AppArmor: enabled > > Versions of packages ansible depends on: > ii openssh-client 1:8.4p1-5 > ii python3 3.9.2-3 > ii python3-cryptography 3.3.2-1 > ii python3-distutils 3.9.2-1 > ii python3-dnspython 2.0.0-1 > ii python3-httplib2 0.18.1-3 > ii python3-jinja2 2.11.3-1 > ii python3-netaddr 0.7.19-5 > ii python3-paramiko 2.7.2-1 > ii python3-yaml 5.3.1-3+b1 > > Versions of packages ansible recommends: > ii python3-argcomplete 1.8.1-1.5 > ii python3-jmespath 0.10.0-1 > ii python3-kerberos 1.1.14-3.1+b3 > ii python3-libcloud 3.2.0-2 > ii python3-selinux 3.1-3 > ii python3-winrm 0.3.0-2 > ii python3-xmltodict 0.12.0-2 > > Versions of packages ansible suggests: > pn cowsay <none> > pn sshpass <none> > > -- no debconf information >