Package: ansible
Version: 2.8.3+dfsg-1
Severity: normal

Hi,

see what happens with ansible 2.8:

[125/5639]mh@drop:~/git/zgdebansible (master *$% u+185) (crm) $ ansible -m 
package_facts emptystretch82 
BECOME password: 
emptystretch82 | SUCCESS => {
    "ansible_facts": {
        "packages": {}
    },
    "changed": false
}
[126/5640]mh@drop:~/git/zgdebansible (master *$% u+185) (crm) $ 

after going back to ansible 2.7 everything is fine again:

[145/5659]mh@drop:~/git/zgdebansible (master *$% u+185) (crm) $ ansible -m 
package_facts emptystretch82  | head -n 20
SUDO password: 
emptystretch82 | SUCCESS => {
    "ansible_facts": {
        "packages": {
            "adduser": [
                {
                    "arch": "all",
                    "name": "adduser",
                    "source": "apt",
                    "version": "3.115"
                }
            ],
            "aide": [
                {
                    "arch": "amd64",
                    "name": "aide",
                    "source": "apt",
                    "version": "0.16.2-0.1~zg90+2"
                }
            ],
            "aide-common": [
Exception ignored in: <_io.TextIOWrapper name='<stdout>' mode='w' 
encoding='UTF-8'>
BrokenPipeError: [Errno 32] Broken pipe
[146/5660]mh@drop:~/git/zgdebansible (master *$% u+185) (crm) $ 

Calling with ANSIBLE_KEEP_REMOTE_FILES=yes and using the python debugger
on the remote host revealed that the 2.8 code tries to return data from
some cache without even trying to build it. The upstream code on
https://github.com/ansible/ansible/blob/devel/lib/ansible/modules/packaging/os/package_facts.py
looks similar but not identical to what gets uploaded to the remote
host.

I'm back on 2.7 for the time being.

Greetings
Marc

-- System Information:
Debian Release: bullseye/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.2.7-zgws1 (SMP w/4 CPU cores)
Kernel taint flags: TAINT_OOT_MODULE
Locale: LANG=de_DE.utf8, LC_CTYPE=de_DE.utf8 (charmap=UTF-8), LANGUAGE=en 
(charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages ansible depends on:
ii  openssh-client        1:8.0p1-4
ii  python3               3.7.3-1
ii  python3-crypto        2.6.1-10
ii  python3-cryptography  2.6.1-3
ii  python3-httplib2      0.11.3-2
ii  python3-jinja2        2.10.1-1
ii  python3-netaddr       0.7.19-1
ii  python3-paramiko      2.4.2-0.1
ii  python3-yaml          5.1.2-1

Versions of packages ansible recommends:
ii  python3-jmespath   0.9.4-1
ii  python3-kerberos   1.1.14-2
ii  python3-libcloud   2.4.0-2
ii  python3-selinux    2.9-2+b2
ii  python3-winrm      0.3.0-2
ii  python3-xmltodict  0.11.0-2

Versions of packages ansible suggests:
ii  cowsay   3.03+dfsg2-6
pn  sshpass  <none>

-- no debconf information

Reply via email to