ansible-collections / community.vmware

Ansible Collection for VMware
GNU General Public License v3.0
346 stars 334 forks source link

"specified parameter was not correct: entity" in community.vmware.vmware_object_role_permission #1178

Closed DasFaultier closed 5 months ago

DasFaultier commented 2 years ago
SUMMARY

When I try to assign a role to a user on an ESXi 7.0.2 host using community.vmware.vmware_object_role_permission, I get the following error message: fatal: [sdvvmesx01 -> localhost]: FAILED! => {"changed": false, "msg": "A specified parameter was not correct: entity"}

The error occurs with both the latest stable version installable via pip and the devel branch.

I'm not sure what parameter this is supposed to be, because the documentation doesn't mention an "entity" parameter, and I haven't found a hint of it either in the module's code (well, I'm not a programmer, so... ). Hence, I assume that this is a bug in the module itself.

I'll be happy to provide you with more details if I can.

ISSUE TYPE
COMPONENT NAME

community.vmware.vmware_object_role_permission

ANSIBLE VERSION
$ ansible --version
ansible [core 2.12.1]
  config file = None
  configured module search path = ['/home/sachse/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /home/sachse/venv/ansible5/lib/python3.8/site-packages/ansible
  ansible collection location = /home/sachse/.ansible/collections:/usr/share/ansible/collections
  executable location = /home/sachse/venv/ansible5/bin/ansible
  python version = 3.8.10 (default, Nov 26 2021, 20:14:08) [GCC 9.3.0]
  jinja version = 3.0.3
  libyaml = True

$ pip list
Package                            Version
---------------------------------- ---------
ansible                            5.1.0
ansible-core                       2.12.1
ansible-lint                       5.3.1
pyvmomi                            7.0.3
vSphere-Automation-SDK             1.71.0
(list shortened for clarity)

$ ansible-galaxy collection list
Collection                    Version
----------------------------- -------
community.vmware              1.17.0
(list shortened for clarity)
COLLECTION VERSION
$ ansible-galaxy collection list community.vmware

# /home/mylinuxuser/venv/ansible5/lib/python3.8/site-packages/ansible_collections
Collection       Version
---------------- -------
community.vmware 1.17.0

# /home/mylinuxuser/.ansible/collections/ansible_collections
Collection       Version
---------------- -------
community.vmware 1.17.0
CONFIGURATION
(none changed)
OS / ENVIRONMENT

Ansible Controller:

$ uname -a
Linux myhostname 5.4.0-58-generic #64-Ubuntu SMP Wed Dec 9 08:16:25 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

$ cat /etc/issue.net
Linux Mint 20.2 Uma

Ansible is running from a Python virtualenv based on Python 3.8.10. Package list inside the virtualenv:

$ pip list
Package                            Version
---------------------------------- ---------
ansible                            5.1.0
ansible-core                       2.12.1
ansible-lint                       5.3.1
bracex                             2.2.1
certifi                            2021.10.8
cffi                               1.15.0
charset-normalizer                 2.0.10
colorama                           0.4.4
commonmark                         0.9.1
cryptography                       36.0.1
enrich                             1.2.6
idna                               3.3
Jinja2                             3.0.3
lxml                               4.7.1
MarkupSafe                         2.0.1
nsx-policy-python-sdk              3.1.3.2.0
nsx-python-sdk                     3.1.3.2.0
nsx-vmc-aws-integration-python-sdk 3.1.3.2.0
nsx-vmc-policy-python-sdk          3.1.3.2.0
packaging                          21.3
pathspec                           0.9.0
pip                                20.0.2
pkg-resources                      0.0.0
pycparser                          2.21
Pygments                           2.11.1
pyOpenSSL                          21.0.0
pyparsing                          3.0.6
pyvmomi                            7.0.3
PyYAML                             6.0
requests                           2.27.0
resolvelib                         0.5.4
rich                               10.16.2
ruamel.yaml                        0.17.20
ruamel.yaml.clib                   0.2.6
setuptools                         44.0.0
six                                1.16.0
tenacity                           8.0.1
urllib3                            1.26.7
vapi-client-bindings               3.7.0
vapi-common-client                 2.30.0
vapi-runtime                       2.30.0
vmc-client-bindings                1.54.0
vmc-draas-client-bindings          1.18.0
vSphere-Automation-SDK             1.71.0
wcmatch                            8.3
wheel                              0.34.2
yamllint                           1.26.3

Target system:

STEPS TO REPRODUCE

Run it with: ANSIBLE_NOCOWS=true ansible-playbook tasks/main.yml -l myesxihost -i inv.yml -k -u root --ask-vault-pass

---
- hosts: "*"
  tasks:
    - community.vmware.vmware_object_role_permission:
        hostname: '{{ ansible_hostname }}'        # this will use the ESXi hostname
        username: '{{ vault_username }}'        # ESXi host admin username
        password: '{{ vault_password }}'        # ESXi host admin password
        object_name: '{{ ansible_hostname }}'        # name of the ESXi object linked to the host, equals ESXi hostname
        object_type: 'HostSystem'
        principal: "{{ vault_local_user_name }}"        # local user previously created
        role: "{{ vault_local_role_name }}"        # local role previously created
        validate_certs: false        # don't show errors for self-signed cert
      delegate_to: localhost
EXPECTED RESULTS

I expected the user to be tied to the role that existed on the ESXi server as shown on the ESXi webUI in "Host -> Permissions".

ACTUAL RESULTS
# THIS IS THE OUTPUT _WITHOUT_ -vvvv FOR SHOWING THE ISSUE AT A GLANCE.
$ ANSIBLE_KEEP_REMOTE_FILES=1 ANSIBLE_NOCOWS=true ansible-playbook tasks/main.yml -l myesxihost -i inv.yml -k -u root --ask-vault-pass
SSH password:
Vault password:

PLAY [*] ********************************************************************************************************

TASK [Gathering Facts] ********************************************************************************************************
[WARNING]: No python interpreters found for host myesxihost (tried ['python3.10', 'python3.9', 'python3.8', 'python3.7', 'python3.6', 'python3.5', '/usr/bin/python3', '/usr/libexec/platform-python', 'python2.7', 'python2.6', '/usr/bin/python', 'python'])
ok: [myesxihost]

TASK [community.vmware.vmware_object_role_permission] ********************************************************************************************************
fatal: [myesxihost -> localhost]: FAILED! => {"changed": false, "msg": "A specified parameter was not correct: entity"}

PLAY RECAP ********************************************************************************************************
sdvvmesx01                 : ok=5    changed=1    unreachable=0    failed=1    skipped=0    rescued=0    ignored=0

# THIS IS THE OUTPUT _WITH_ -vvvv FOR SHOWING ALL DETAILS.
$ ANSIBLE_KEEP_REMOTE_FILES=1 ANSIBLE_NOCOWS=true ansible-playbook tasks/main.yml -l myesxihost -i inv.yml -k -u root --ask-vault-pass -vvvv
ansible-playbook [core 2.12.1]
  config file = None
  configured module search path = ['/home/mylinuxuser/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /home/mylinuxuser/venv/ansible5/lib/python3.8/site-packages/ansible
  ansible collection location = /home/mylinuxuser/.ansible/collections:/usr/share/ansible/collections
  executable location = /home/mylinuxuser/venv/ansible5/bin/ansible-playbook
  python version = 3.8.10 (default, Nov 26 2021, 20:14:08) [GCC 9.3.0]
  jinja version = 3.0.3
  libyaml = True
No config file found; using defaults
SSH password:
Vault password:
setting up inventory plugins
host_list declined parsing /home/mylinuxuser/src/ansible-collections/SLUB/Infra/ansible_esxi_greenbone/inv.yml as it did not pass its verify_file() method
script declined parsing /home/mylinuxuser/src/ansible-collections/SLUB/Infra/ansible_esxi_greenbone/inv.yml as it did not pass its verify_file() method
Parsed /home/mylinuxuser/src/ansible-collections/SLUB/Infra/ansible_esxi_greenbone/inv.yml inventory source with ini plugin
Loading collection community.vmware from /home/mylinuxuser/venv/ansible5/lib/python3.8/site-packages/ansible_collections/community/vmware
Loading callback plugin default of type stdout, v2.0 from /home/mylinuxuser/venv/ansible5/lib/python3.8/site-packages/ansible/plugins/callback/default.py
Skipping callback 'default', as we already have a stdout callback.
Skipping callback 'minimal', as we already have a stdout callback.
Skipping callback 'oneline', as we already have a stdout callback.

PLAYBOOK: main.yml *********************************
Positional arguments: tasks/main.yml
verbosity: 4
remote_user: root
connection: smart
timeout: 10
ask_pass: True
become_method: sudo
tags: ('all',)
inventory: ('/home/mylinuxuser/src/ansible-collections/SLUB/Infra/ansible_esxi_greenbone/inv.yml',)
subset: myesxihost
ask_vault_pass: True
forks: 5
1 plays in tasks/main.yml

PLAY [*] *********************************
TASK [Gathering Facts] *********************************
task path: /home/mylinuxuser/src/ansible-collections/SLUB/Infra/ansible_esxi_greenbone/tasks/main.yml:3
<myesxihost> ESTABLISH SSH CONNECTION FOR USER: root
<myesxihost> SSH: EXEC sshpass -d10 ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o 'User="root"' -o ConnectTimeout=10 -o ControlPath=/home/mylinuxuser/.ansible/cp/c850193760 myesxihost '/bin/sh -c '"'"'echo ~root && sleep 0'"'"''
<myesxihost> (0, b'/\n', b'OpenSSH_8.2p1 Ubuntu-4ubuntu0.3, OpenSSL 1.1.1f  31 Mar 2020\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 19: include /etc/ssh/ssh_config.d/*.conf matched no files\r\ndebug1: /etc/ssh/ssh_config line 21: Applying options for *\r\ndebug1:auto-mux: Trying existing master\r\ndebug1: Control socket "/home/mylinuxuser/.ansible/cp/c850193760" does not exist\r\ndebug2: resolving "myesxihost" port 22\r\ndebug2: ssh_connect_direct\r\ndebug1: Connecting to myesxihost [212.201.58.3] port 22.\r\ndebug2: fd 4 setting O_NONBLOCK\r\ndebug1: fd 4 clearing O_NONBLOCK\r\ndebug1: Connection established.\r\ndebug3: timeout: 10000 ms remain after connect\r\ndebug1: identity file /home/mylinuxuser/.ssh/id_rsa type -1\r\ndebug1: identity file /home/mylinuxuser/.ssh/id_rsa-cert type -1\r\ndebug1: identity file /home/mylinuxuser/.ssh/id_dsa type -1\r\ndebug1: identity file /home/mylinuxuser/.ssh/id_dsa-cert type -1\r\ndebug1: identity file /home/mylinuxuser/.ssh/id_ecdsa type -1\r\ndebug1: identity file /home/mylinuxuser/.ssh/id_ecdsa-cert type -1\r\ndebug1: identity file /home/mylinuxuser/.ssh/id_ecdsa_sk type -1\r\ndebug1: identity file /home/mylinuxuser/.ssh/id_ecdsa_sk-cert type -1\r\ndebug1: identity file /home/mylinuxuser/.ssh/id_ed25519 type -1\r\ndebug1: identity file /home/mylinuxuser/.ssh/id_ed25519-cert type -1\r\ndebug1: identity file /home/mylinuxuser/.ssh/id_ed25519_sk type -1\r\ndebug1: identity file /home/mylinuxuser/.ssh/id_ed25519_sk-cert type -1\r\ndebug1: identity file /home/mylinuxuser/.ssh/id_xmss type -1\r\ndebug1: identity file /home/mylinuxuser/.ssh/id_xmss-cert type -1\r\ndebug1: Local version string SSH-2.0-OpenSSH_8.2p1 Ubuntu-4ubuntu0.3\r\ndebug1: Remote protocol version 2.0, remote software version OpenSSH_8.5\r\ndebug1: match: OpenSSH_8.5 pat OpenSSH* compat 0x04000000\r\ndebug2: fd 4 setting O_NONBLOCK\r\ndebug1: Authenticating to myesxihost:22 as \'root\'\r\ndebug3: hostkeys_foreach: reading file "/home/mylinuxuser/.ssh/known_hosts"\r\ndebug3: record_hostkey: found key type ECDSA in file /home/mylinuxuser/.ssh/known_hosts:57\r\ndebug3: load_hostkeys: loaded 1 keys from myesxihost\r\ndebug3: order_hostkeyalgs: prefer hostkeyalgs: ecdsa-sha2-nistp256-cert-v01@openssh.com,ecdsa-sha2-nistp384-cert-v01@openssh.com,ecdsa-sha2-nistp521-cert-v01@openssh.com,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521\r\ndebug3: send packet: type 20\r\ndebug1: SSH2_MSG_KEXINIT sent\r\ndebug3: receive packet: type 20\r\ndebug1: SSH2_MSG_KEXINIT received\r\ndebug2: local client KEXINIT proposal\r\ndebug2: KEX algorithms: curve25519-sha256,curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,diffie-hellman-group14-sha256,ext-info-c\r\ndebug2: host key algorithms: ecdsa-sha2-nistp256-cert-v01@openssh.com,ecdsa-sha2-nistp384-cert-v01@openssh.com,ecdsa-sha2-nistp521-cert-v01@openssh.com,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,sk-ecdsa-sha2-nistp256-cert-v01@openssh.com,ssh-ed25519-cert-v01@openssh.com,sk-ssh-ed25519-cert-v01@openssh.com,rsa-sha2-512-cert-v01@openssh.com,rsa-sha2-256-cert-v01@openssh.com,ssh-rsa-cert-v01@openssh.com,sk-ecdsa-sha2-nistp256@openssh.com,ssh-ed25519,sk-ssh-ed25519@openssh.com,rsa-sha2-512,rsa-sha2-256,ssh-rsa\r\ndebug2: ciphers ctos: chacha20-poly1305@openssh.com,aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm@openssh.com,aes256-gcm@openssh.com\r\ndebug2: ciphers stoc: chacha20-poly1305@openssh.com,aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm@openssh.com,aes256-gcm@openssh.com\r\ndebug2: MACs ctos: umac-64-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha1-etm@openssh.com,umac-64@openssh.com,umac-128@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-sha1\r\ndebug2: MACs stoc: umac-64-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha1-etm@openssh.com,umac-64@openssh.com,umac-128@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-sha1\r\ndebug2: compression ctos: zlib@openssh.com,zlib,none\r\ndebug2: compression stoc: zlib@openssh.com,zlib,none\r\ndebug2: languages ctos: \r\ndebug2: languages stoc: \r\ndebug2: first_kex_follows 0 \r\ndebug2: reserved 0 \r\ndebug2: peer server KEXINIT proposal\r\ndebug2: KEX algorithms: ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,diffie-hellman-group14-sha256\r\ndebug2: host key algorithms: rsa-sha2-512,rsa-sha2-256,ecdsa-sha2-nistp256\r\ndebug2: ciphers ctos: aes256-gcm@openssh.com,aes128-gcm@openssh.com,aes256-ctr,aes192-ctr,aes128-ctr\r\ndebug2: ciphers stoc: aes256-gcm@openssh.com,aes128-gcm@openssh.com,aes256-ctr,aes192-ctr,aes128-ctr\r\ndebug2: MACs ctos: hmac-sha2-256,hmac-sha2-512\r\ndebug2: MACs stoc: hmac-sha2-256,hmac-sha2-512\r\ndebug2: compression ctos: none\r\ndebug2: compression stoc: none\r\ndebug2: languages ctos: \r\ndebug2: languages stoc: \r\ndebug2: first_kex_follows 0 \r\ndebug2: reserved 0 \r\ndebug1: kex: algorithm: ecdh-sha2-nistp256\r\ndebug1: kex: host key algorithm: ecdsa-sha2-nistp256\r\ndebug1: kex: server->client cipher: aes128-ctr MAC: hmac-sha2-256 compression: none\r\ndebug1: kex: client->server cipher: aes128-ctr MAC: hmac-sha2-256 compression: none\r\ndebug3: send packet: type 30\r\ndebug1: expecting SSH2_MSG_KEX_ECDH_REPLY\r\ndebug3: receive packet: type 31\r\ndebug1: Server host key: ecdsa-sha2-nistp256 SHA256:8TMubCkGh2hrM0pkZRV6la6yoyBZq/CoKG+9d299OIw\r\ndebug3: hostkeys_foreach: reading file "/home/mylinuxuser/.ssh/known_hosts"\r\ndebug3: record_hostkey: found key type ECDSA in file /home/mylinuxuser/.ssh/known_hosts:57\r\ndebug3: load_hostkeys: loaded 1 keys from myesxihost\r\ndebug3: hostkeys_foreach: reading file "/home/mylinuxuser/.ssh/known_hosts"\r\ndebug3: record_hostkey: found key type ECDSA in file /home/mylinuxuser/.ssh/known_hosts:58\r\ndebug3: load_hostkeys: loaded 1 keys from 212.201.58.3\r\ndebug1: Host \'myesxihost\' is known and matches the ECDSA host key.\r\ndebug1: Found key in /home/mylinuxuser/.ssh/known_hosts:57\r\ndebug3: send packet: type 21\r\ndebug2: set_newkeys: mode 1\r\ndebug1: rekey out after 4294967296 blocks\r\ndebug1: SSH2_MSG_NEWKEYS sent\r\ndebug1: expecting SSH2_MSG_NEWKEYS\r\ndebug3: receive packet: type 21\r\ndebug1: SSH2_MSG_NEWKEYS received\r\ndebug2: set_newkeys: mode 0\r\ndebug1: rekey in after 4294967296 blocks\r\ndebug1: Will attempt key: /home/mylinuxuser/.ssh/RSA-Key-20151217-4096Bit-SLUB-mylinuxuser_OpenSSH RSA SHA256:QTbHOoI6kvM7zrzi7eJ7Ugy1zovCV0FZ1l9xP/rOrrg agent\r\ndebug1: Will attempt key: /home/mylinuxuser/.ssh/id_rsa \r\ndebug1: Will attempt key: /home/mylinuxuser/.ssh/id_dsa \r\ndebug1: Will attempt key: /home/mylinuxuser/.ssh/id_ecdsa \r\ndebug1: Will attempt key: /home/mylinuxuser/.ssh/id_ecdsa_sk \r\ndebug1: Will attempt key: /home/mylinuxuser/.ssh/id_ed25519 \r\ndebug1: Will attempt key: /home/mylinuxuser/.ssh/id_ed25519_sk \r\ndebug1: Will attempt key: /home/mylinuxuser/.ssh/id_xmss \r\ndebug2: pubkey_prepare: done\r\ndebug3: send packet: type 5\r\ndebug3: receive packet: type 7\r\ndebug1: SSH2_MSG_EXT_INFO received\r\ndebug1: kex_input_ext_info: server-sig-algs=<ssh-ed25519,sk-ssh-ed25519@openssh.com,ssh-rsa,rsa-sha2-256,rsa-sha2-512,ssh-dss,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,sk-ecdsa-sha2-nistp256@openssh.com,webauthn-sk-ecdsa-sha2-nistp256@openssh.com>\r\ndebug3: receive packet: type 6\r\ndebug2: service_accept: ssh-userauth\r\ndebug1: SSH2_MSG_SERVICE_ACCEPT received\r\ndebug3: send packet: type 50\r\ndebug3: receive packet: type 51\r\ndebug1: Authentications that can continue: publickey,keyboard-interactive\r\ndebug3: start over, passed a different list publickey,keyboard-interactive\r\ndebug3: preferred gssapi-with-mic,publickey,keyboard-interactive,password\r\ndebug3: authmethod_lookup publickey\r\ndebug3: remaining preferred: keyboard-interactive,password\r\ndebug3: authmethod_is_enabled publickey\r\ndebug1: Next authentication method: publickey\r\ndebug1: Offering public key: /home/mylinuxuser/.ssh/RSA-Key-20151217-4096Bit-SLUB-mylinuxuser_OpenSSH RSA SHA256:QTbHOoI6kvM7zrzi7eJ7Ugy1zovCV0FZ1l9xP/rOrrg agent\r\ndebug3: send packet: type 50\r\ndebug2: we sent a publickey packet, wait for reply\r\ndebug3: receive packet: type 51\r\ndebug1: Authentications that can continue: publickey,keyboard-interactive\r\ndebug1: Trying private key: /home/mylinuxuser/.ssh/id_rsa\r\ndebug3: no such identity: /home/mylinuxuser/.ssh/id_rsa: No such file or directory\r\ndebug1: Trying private key: /home/mylinuxuser/.ssh/id_dsa\r\ndebug3: no such identity: /home/mylinuxuser/.ssh/id_dsa: No such file or directory\r\ndebug1: Trying private key: /home/mylinuxuser/.ssh/id_ecdsa\r\ndebug3: no such identity: /home/mylinuxuser/.ssh/id_ecdsa: No such file or directory\r\ndebug1: Trying private key: /home/mylinuxuser/.ssh/id_ecdsa_sk\r\ndebug3: no such identity: /home/mylinuxuser/.ssh/id_ecdsa_sk: No such file or directory\r\ndebug1: Trying private key: /home/mylinuxuser/.ssh/id_ed25519\r\ndebug3: no such identity: /home/mylinuxuser/.ssh/id_ed25519: No such file or directory\r\ndebug1: Trying private key: /home/mylinuxuser/.ssh/id_ed25519_sk\r\ndebug3: no such identity: /home/mylinuxuser/.ssh/id_ed25519_sk: No such file or directory\r\ndebug1: Trying private key: /home/mylinuxuser/.ssh/id_xmss\r\ndebug3: no such identity: /home/mylinuxuser/.ssh/id_xmss: No such file or directory\r\ndebug2: we did not send a packet, disable method\r\ndebug3: authmethod_lookup keyboard-interactive\r\ndebug3: remaining preferred: password\r\ndebug3: authmethod_is_enabled keyboard-interactive\r\ndebug1: Next authentication method: keyboard-interactive\r\ndebug2: userauth_kbdint\r\ndebug3: send packet: type 50\r\ndebug2: we sent a keyboard-interactive packet, wait for reply\r\ndebug3: receive packet: type 60\r\ndebug2: input_userauth_info_req\r\ndebug2: input_userauth_info_req: num_prompts 1\r\ndebug3: send packet: type 61\r\ndebug3: receive packet: type 60\r\ndebug2: input_userauth_info_req\r\ndebug2: input_userauth_info_req: num_prompts 0\r\ndebug3: send packet: type 61\r\ndebug3: receive packet: type 52\r\ndebug1: Authentication succeeded (keyboard-interactive).\r\nAuthenticated to myesxihost ([212.201.58.3]:22).\r\ndebug1: setting up multiplex master socket\r\ndebug3: muxserver_listen: temporary control path /home/mylinuxuser/.ansible/cp/c850193760.UGBq0PrufWkHYkdx\r\ndebug2: fd 5 setting O_NONBLOCK\r\ndebug3: fd 5 is O_NONBLOCK\r\ndebug3: fd 5 is O_NONBLOCK\r\ndebug1: channel 0: new [/home/mylinuxuser/.ansible/cp/c850193760]\r\ndebug3: muxserver_listen: mux listener channel 0 fd 5\r\ndebug2: fd 4 setting TCP_NODELAY\r\ndebug3: ssh_packet_set_tos: set IP_TOS 0x08\r\ndebug1: control_persist_detach: backgrounding master process\r\ndebug2: control_persist_detach: background process is 2181606\r\ndebug2: fd 5 setting O_NONBLOCK\r\ndebug1: forking to background\r\ndebug1: Entering interactive session.\r\ndebug1: pledge: id\r\ndebug2: set_control_persist_exit_time: schedule exit in 60 seconds\r\ndebug1: multiplexing control connection\r\ndebug2: fd 6 setting O_NONBLOCK\r\ndebug3: fd 6 is O_NONBLOCK\r\ndebug1: channel 1: new [mux-control]\r\ndebug3: channel_post_mux_listener: new mux channel 1 fd 6\r\ndebug3: mux_master_read_cb: channel 1: hello sent\r\ndebug2: set_control_persist_exit_time: cancel scheduled exit\r\ndebug3: mux_master_read_cb: channel 1 packet type 0x00000001 len 4\r\ndebug2: mux_master_process_hello: channel 1 slave version 4\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_master_read_cb: channel 1 packet type 0x10000004 len 4\r\ndebug2: mux_master_process_alive_check: channel 1: alive check\r\ndebug3: mux_client_request_alive: done pid = 2181608\r\ndebug3: mux_client_request_session: session request sent\r\ndebug3: mux_master_read_cb: channel 1 packet type 0x10000002 len 96\r\ndebug2: mux_master_process_new_session: channel 1: request tty 0, X 0, agent 0, subsys 0, term "screen", cmd "/bin/sh -c \'echo ~root && sleep 0\'", env 1\r\ndebug3: mux_master_process_new_session: got fds stdin 7, stdout 8, stderr 9\r\ndebug2: fd 8 setting O_NONBLOCK\r\ndebug2: fd 9 setting O_NONBLOCK\r\ndebug1: channel 2: new [client-session]\r\ndebug2: mux_master_process_new_session: channel_new: 2 linked to control channel 1\r\ndebug2: channel 2: send open\r\ndebug3: send packet: type 90\r\ndebug3: receive packet: type 80\r\ndebug1: client_input_global_request: rtype hostkeys-00@openssh.com want_reply 0\r\ndebug3: receive packet: type 91\r\ndebug2: channel_input_open_confirmation: channel 2: callback start\r\ndebug2: client_session2_setup: id 2\r\ndebug1: Sending environment.\r\ndebug1: Sending env LANG = de_DE.UTF-8\r\ndebug2:channel 2: request env confirm 0\r\ndebug3: send packet: type 98\r\ndebug1: Sending command: /bin/sh -c \'echo ~root && sleep 0\'\r\ndebug2: channel 2: request exec confirm 1\r\ndebug3: send packet: type 98\r\ndebug3: mux_session_confirm: sending success reply\r\ndebug2: channel_input_open_confirmation: channel 2: callback done\r\ndebug2: channel 2: open confirm rwindow 0 rmax 32768\r\ndebug2: channel 2: rcvd adjust 2097152\r\ndebug3: receive packet: type 99\r\ndebug2: channel_input_status_confirm: type 99 id 2\r\ndebug2: exec request accepted on channel 2\r\ndebug3: receive packet: type 96\r\ndebug2: channel 2: rcvd eof\r\ndebug2: channel 2: output open -> drain\r\ndebug2: channel 2: obuf empty\r\ndebug2: channel 2: chan_shutdown_write (i0 o1 sock -1 wfd 8 efd 9 [write])\r\ndebug2: channel 2: output drain -> closed\r\ndebug3: receive packet: type 98\r\ndebug1: client_input_channel_req: channel 2 rtype exit-status reply 0\r\ndebug3: mux_exit_message: channel 2: exit message, exitval 0\r\ndebug3: receive packet: type 98\r\ndebug1: client_input_channel_req: channel 2 rtype eow@openssh.com reply 0\r\ndebug2: channel 2: rcvd eow\r\ndebug2: channel 2: chan_shutdown_read (i0 o3 sock -1 wfd 7 efd 9 [write])\r\ndebug2: channel 2: input open ->closed\r\ndebug3: receive packet: type 97\r\ndebug2: channel 2: rcvd close\r\ndebug3: channel 2: will not send data after close\r\ndebug2: channel 2: send close\r\ndebug3: send packet: type 97\r\ndebug2: channel 2: is dead\r\ndebug2: channel 2: gc: notify user\r\ndebug3: mux_master_session_cleanup_cb: entering for channel 2\r\ndebug2: channel 1: rcvd close\r\ndebug2: channel 1: output open -> drain\r\ndebug2: channel 1: chan_shutdown_read (i0 o1 sock 6 wfd 6 efd -1 [closed])\r\ndebug2: channel 1: input open -> closed\r\ndebug2: channel 2: gc: user detached\r\ndebug2: channel 2: is dead\r\ndebug2: channel 2: garbage collecting\r\ndebug1: channel 2: free: client-session, nchannels 3\r\ndebug3: channel 2: status: The following connections are open:\r\n  #1 mux-control (t16 nr0 i3/0 o1/16 e[closed]/0 fd 6/6/-1 sock 6 cc -1)\r\n  #2 client-session (t4 r0 i3/0 o3/0 e[write]/0 fd -1/-1/9 sock -1 cc -1)\r\n\r\ndebug2: channel 1: obuf empty\r\ndebug2: channel 1: chan_shutdown_write (i3 o1 sock 6 wfd 6 efd -1 [closed])\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\ndebug2: channel 1: output drain -> closed\r\ndebug2: channel 1: is dead (local)\r\ndebug2: channel 1: gc: notify user\r\ndebug3: mux_master_control_cleanup_cb: entering for channel 1\r\ndebug2: channel 1: gc: user detached\r\ndebug2: channel 1: is dead (local)\r\ndebug2: channel 1: garbage collecting\r\ndebug1: channel 1: free: mux-control, nchannels 2\r\ndebug3: channel 1: status: The following connections are open:\r\n  #1mux-control (t16 nr0 i3/0 o3/0 e[closed]/0 fd 6/6/-1 sock 6 cc -1)\r\n\r\ndebug2: set_control_persist_exit_time: schedule exit in 60 seconds\r\n')
<myesxihost> ESTABLISH SSH CONNECTION FOR USER: root
<myesxihost> SSH: EXEC sshpass -d10 ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o 'User="root"' -o ConnectTimeout=10 -o ControlPath=/home/mylinuxuser/.ansible/cp/c850193760 myesxihost '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo /.ansible/tmp `"&& mkdir "` echo /.ansible/tmp/ansible-tmp-1641453313.3500037-2181602-115676648554594 `" && echo ansible-tmp-1641453313.3500037-2181602-115676648554594="` echo /.ansible/tmp/ansible-tmp-1641453313.3500037-2181602-115676648554594 `" ) && sleep 0'"'"''
<myesxihost> (0, b'ansible-tmp-1641453313.3500037-2181602-115676648554594=/.ansible/tmp/ansible-tmp-1641453313.3500037-2181602-115676648554594\n', b'OpenSSH_8.2p1 Ubuntu-4ubuntu0.3, OpenSSL 1.1.1f  31 Mar 2020\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 19: include /etc/ssh/ssh_config.d/*.conf matched no files\r\ndebug1: /etc/ssh/ssh_config line 21: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 4 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 2181608\r\ndebug3: mux_client_request_session: session request sent\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
<myesxihost> Attempting python interpreter discovery
<myesxihost> ESTABLISH SSH CONNECTION FOR USER: root
<myesxihost> SSH: EXEC sshpass -d10 ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o 'User="root"' -o ConnectTimeout=10 -o ControlPath=/home/mylinuxuser/.ansible/cp/c850193760 myesxihost '/bin/sh -c '"'"'echo PLATFORM; uname; echo FOUND; command -v '"'"'"'"'"'"'"'"'python3.10'"'"'"'"'"'"'"'"'; command -v '"'"'"'"'"'"'"'"'python3.9'"'"'"'"'"'"'"'"'; command -v '"'"'"'"'"'"'"'"'python3.8'"'"'"'"'"'"'"'"'; command -v '"'"'"'"'"'"'"'"'python3.7'"'"'"'"'"'"'"'"'; command -v '"'"'"'"'"'"'"'"'python3.6'"'"'"'"'"'"'"'"'; command -v '"'"'"'"'"'"'"'"'python3.5'"'"'"'"'"'"'"'"'; command -v '"'"'"'"'"'"'"'"'/usr/bin/python3'"'"'"'"'"'"'"'"'; command -v '"'"'"'"'"'"'"'"'/usr/libexec/platform-python'"'"'"'"'"'"'"'"'; command -v '"'"'"'"'"'"'"'"'python2.7'"'"'"'"'"'"'"'"'; command -v '"'"'"'"'"'"'"'"'python2.6'"'"'"'"'"'"'"'"'; command -v '"'"'"'"'"'"'"'"'/usr/bin/python'"'"'"'"'"'"'"'"'; command -v '"'"'"'"'"'"'"'"'python'"'"'"'"'"'"'"'"'; echo ENDFOUND && sleep 0'"'"''
<myesxihost> (0, b'PLATFORM\nVMkernel\nFOUND\nENDFOUND\n', b'OpenSSH_8.2p1 Ubuntu-4ubuntu0.3, OpenSSL 1.1.1f  31 Mar 2020\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 19: include /etc/ssh/ssh_config.d/*.conf matched no files\r\ndebug1: /etc/ssh/ssh_config line 21:Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 4 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 2181608\r\ndebug3: mux_client_request_session: session request sent\r\n/bin/sh: command: not found\n/bin/sh: command: not found\n/bin/sh: command: not found\n/bin/sh: command: not found\n/bin/sh: command: not found\n/bin/sh: command: not found\n/bin/sh: command: not found\n/bin/sh: command: not found\n/bin/sh: command: not found\n/bin/sh: command: not found\n/bin/sh: command: not found\n/bin/sh: command: not found\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n') Using module file /home/mylinuxuser/venv/ansible5/lib/python3.8/site-packages/ansible/modules/setup.py
<myesxihost> PUT /home/mylinuxuser/.ansible/tmp/ansible-local-21815946zs3awgh/tmplay4ywrl TO /.ansible/tmp/ansible-tmp-1641453313.3500037-2181602-115676648554594/AnsiballZ_setup.py
<myesxihost> SSH: EXEC sshpass -d10 sftp -o BatchMode=no -b - -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o 'User="root"' -o ConnectTimeout=10 -o ControlPath=/home/mylinuxuser/.ansible/cp/c850193760 '[myesxihost]'
<myesxihost> (0, b'sftp> put /home/mylinuxuser/.ansible/tmp/ansible-local-21815946zs3awgh/tmplay4ywrl /.ansible/tmp/ansible-tmp-1641453313.3500037-2181602-115676648554594/AnsiballZ_setup.py\n', b'OpenSSH_8.2p1 Ubuntu-4ubuntu0.3, OpenSSL 1.1.1f  31 Mar 2020\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 19: include /etc/ssh/ssh_config.d/*.conf matched no files\r\ndebug1: /etc/ssh/ssh_config line 21: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 4 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 2181608\r\ndebug3: mux_client_request_session: session request sent\r\ndebug2: Remote version: 3\r\ndebug2: Server supports extension "posix-rename@openssh.com" revision 1\r\ndebug2: Server supports extension "statvfs@openssh.com" revision 2\r\ndebug2: Server supports extension "fstatvfs@openssh.com" revision 2\r\ndebug2: Server supports extension "hardlink@openssh.com" revision 1\r\ndebug2: Server supports extension "fsync@openssh.com" revision 1\r\ndebug2: Server supports extension "lsetstat@openssh.com" revision 1\r\ndebug2: Unrecognised server extension "limits@openssh.com"\r\ndebug3: Sent message fd 3 T:16 I:1\r\ndebug3: SSH_FXP_REALPATH . -> / size 0\r\ndebug3: Looking up /home/mylinuxuser/.ansible/tmp/ansible-local-21815946zs3awgh/tmplay4ywrl\r\ndebug3: Sent message fd 3 T:17 I:2\r\ndebug3: Received stat reply T:101 I:2\r\ndebug1: Couldn\'t stat remote file: No such file or directory\r\ndebug3: Sent message SSH2_FXP_OPEN I:3 P:/.ansible/tmp/ansible-tmp-1641453313.3500037-2181602-115676648554594/AnsiballZ_setup.py\r\ndebug3: Sent message SSH2_FXP_WRITEI:4 O:0 S:32768\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: In write loop, ack for 4 32768 bytes at 0\r\ndebug3: Sent message SSH2_FXP_WRITE I:5 O:32768 S:32768\r\ndebug3: Sent message SSH2_FXP_WRITE I:6 O:65536 S:32768\r\ndebug3: Sent message SSH2_FXP_WRITE I:7 O:98304 S:32768\r\ndebug3: Sent message SSH2_FXP_WRITEI:8 O:131072 S:32768\r\ndebug3: Sent message SSH2_FXP_WRITE I:9 O:163840 S:32768\r\ndebug3: Sent message SSH2_FXP_WRITE I:10 O:196608 S:32768\r\ndebug3: Sent message SSH2_FXP_WRITE I:11 O:229376 S:32768\r\ndebug3: Sent message SSH2_FXP_WRITE I:12 O:262144 S:32768\r\ndebug3: Sent message SSH2_FXP_WRITE I:13 O:294912 S:4690\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: In write loop, ack for 5 32768 bytes at 32768\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: In write loop, ack for 6 32768 bytes at 65536\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: In write loop, ack for 7 32768 bytes at 98304\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: In write loop, ack for 8 32768 bytes at 131072\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: In write loop, ack for 9 32768 bytes at 163840\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: In write loop, ack for 10 32768 bytes at 196608\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: In write loop, ack for 11 32768 bytes at 229376\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: In write loop, ack for 12 32768 bytes at 262144\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: In write loop, ack for 13 4690 bytes at 294912\r\ndebug3: Sent message SSH2_FXP_CLOSE I:4\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
<myesxihost> ESTABLISH SSH CONNECTION FOR USER: root
<myesxihost> SSH: EXEC sshpass -d10 ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o 'User="root"' -o ConnectTimeout=10 -o ControlPath=/home/mylinuxuser/.ansible/cp/c850193760 myesxihost '/bin/sh -c '"'"'chmod u+x /.ansible/tmp/ansible-tmp-1641453313.3500037-2181602-115676648554594/ /.ansible/tmp/ansible-tmp-1641453313.3500037-2181602-115676648554594/AnsiballZ_setup.py && sleep 0'"'"''
<myesxihost> (0, b'', b'OpenSSH_8.2p1 Ubuntu-4ubuntu0.3, OpenSSL 1.1.1f  31 Mar 2020\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 19: include /etc/ssh/ssh_config.d/*.conf matched no files\r\ndebug1: /etc/ssh/ssh_config line 21: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 4 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 2181608\r\ndebug3: mux_client_request_session: session request sent\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
<myesxihost> ESTABLISH SSH CONNECTION FOR USER: root
<myesxihost> SSH: EXEC sshpass -d10 ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o 'User="root"' -o ConnectTimeout=10 -o ControlPath=/home/mylinuxuser/.ansible/cp/c850193760 -tt myesxihost '/bin/sh -c '"'"'/usr/bin/python /.ansible/tmp/ansible-tmp-1641453313.3500037-2181602-115676648554594/AnsiballZ_setup.py && sleep 0'"'"''
<myesxihost> (0, b'\r\n{"ansible_facts": {"ansible_virtualization_type": "", "ansible_virtualization_role": "", "ansible_virtualization_tech_guest": [], "ansible_virtualization_tech_host": [], "ansible_date_time": {"year": "2022", "month": "01", "weekday": "Thursday", "weekday_number": "4", "weeknumber": "01", "day": "06", "hour": "07", "minute": "15", "second": "14", "epoch": "1641453314", "epoch_int": "1641453314", "date": "2022-01-06", "time": "07:15:14", "iso8601_micro": "2022-01-06T07:15:14.043855Z", "iso8601": "2022-01-06T07:15:14Z", "iso8601_basic": "20220106T071514043855", "iso8601_basic_short": "20220106T071514", "tz": "UTC", "tz_dst": "UTC", "tz_offset": "+0000"}, "ansible_python": {"version": {"major": 3, "minor": 8, "micro": 3, "releaselevel": "final", "serial": 0}, "version_info": [3, 8, 3, "final", 0], "executable": "/usr/bin/python", "has_sslcontext": true, "type": "cpython"}, "ansible_system": "VMkernel", "ansible_kernel": "7.0.2", "ansible_kernel_version": "#1 SMP Release build-18426014 Aug  4 2021 04:22:03", "ansible_machine": "x86_64", "ansible_python_version": "3.8.3", "ansible_fqdn": "myesxihost", "ansible_hostname": "myesxihost", "ansible_nodename": "myesxihost", "ansible_domain": "", "ansible_userspace_bits": "64", "ansible_architecture": "x86_64", "ansible_userspace_architecture": "x86_64", "ansible_apparmor": {"status": "disabled"}, "ansible_env": {"USER": "root", "SSH_CLIENT": "194.95.144.71 57194 22", "SHLVL": "2", "HOME": "/", "SSH_TTY": "/dev/char/pty/t0", "LOGNAME": "root", "TERM": "screen", "PATH": "/bin:/sbin", "LANG": "en_US.UTF-8", "SHELL": "/bin/sh", "LC_ALL": "en_US.UTF-8", "PWD": "/", "SSH_CONNECTION": "194.95.144.71 57194 212.201.58.3 22"}, "ansible_iscsi_iqn": "", "ansible_hostnqn": "", "ansible_user_id": "root", "ansible_user_uid": 0, "ansible_user_gid": 0, "ansible_user_gecos": "Administrator", "ansible_user_dir": "/", "ansible_user_shell": "/bin/sh", "ansible_real_user_id": 0, "ansible_effective_user_id": 0, "ansible_real_group_id": 0, "ansible_effective_group_id": 0, "ansible_distribution": "VMkernel", "ansible_distribution_release": "7.0.2", "ansible_distribution_version": "#1 SMP Release build-18426014 Aug  4 2021 04:22:03", "ansible_os_family": "VMkernel", "ansible_fips": false, "ansible_fibre_channel_wwn": [], "ansible_dns": {"nameservers": ["194.95.142.200", "194.95.142.203"], "search": ["slub-dresden.de"]}, "ansible_local": {}, "ansible_ssh_host_key_rsa_public": "AAAAB3NzaC1yc2EAAAADAQABAAABgQCrCw1YLsRqcdFUGr3a1Wv+kC5FdPKI+E++y8YOgOS0qTM4Ofo+vWJaA4H7M1XGmUqrT31p56mIZAD7XgGwrrn8wQyHjiDVei4AuIRdaDqfj6jlebjod/9ej3aKQSgEWvumz0ffq/jfQvPvqr5UMYLHE4roti0Y/f7Dhg/3XzENqgiKbZiralamN2zugXvjWJLAaMSz/uhvHQ6yhsbFFaTuBc1Ghznr5cJM36nhpKhdV/HMMxFK4JxCwxCOkMOlOmp2IXUrX10sq8YAX9HSrukd7TlY4yrHLv58l3NRw41fuzBce2N/PRPFdVX/37lukFF0FB3uzkwb5Ys875kHU7BWANJW94ep69tFfuC5Gk8ZLMg3Hpe7/lGbZUlnsQfOytPSwlhDtFILtg1wRO8AifkfKdgx5iQOw8XqwKlbwh1pdBkXk2+9MLzT/N9jK1PFxLuK+l399tX1ubPSbX8y1FCHOPoI+l+Z9NXwrMtUICC9W6dqwjGJhaumNDp9bawqKss=", "ansible_ssh_host_key_rsa_public_keytype": "ssh-rsa", "ansible_ssh_host_key_ecdsa_public": "AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBCAkAkeZXMvyZBt8VFmujgBPXhM7o3fuFEjC8rlidDIoJ2APt3/sjuyV4qAbMmynreF5mxzrPyG7o8XRVmRuvHw=", "ansible_ssh_host_key_ecdsa_public_keytype": "ecdsa-sha2-nistp256", "ansible_is_chroot": true, "ansible_lsb": {}, "ansible_selinux": {"status": "Missing selinux Python library"}, "ansible_selinux_python_present": false, "ansible_service_mgr": "busybox", "ansible_pkg_mgr": "unknown", "gather_subset": ["all"], "module_setup": true}, "invocation": {"module_args": {"gather_subset": ["all"], "gather_timeout": 10, "filter": [], "fact_path": "/etc/ansible/facts.d"}}}\r\n', b'OpenSSH_8.2p1 Ubuntu-4ubuntu0.3, OpenSSL 1.1.1f  31 Mar 2020\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 19: include /etc/ssh/ssh_config.d/*.conf matched no files\r\ndebug1: /etc/ssh/ssh_config line 21: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 4 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 2181608\r\ndebug3: mux_client_request_session: session request sent\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\nShared connection to myesxihost closed.\r\n')
[WARNING]: No python interpreters found for host myesxihost (tried ['python3.10', 'python3.9', 'python3.8', 'python3.7', 'python3.6', 'python3.5', '/usr/bin/python3', '/usr/libexec/platform-python', 'python2.7', 'python2.6', '/usr/bin/python', 'python'])
ok: [myesxihost]
META: ran handlers

TASK [community.vmware.vmware_object_role_permission] *********************************
task path: /home/mylinuxuser/src/ansible-collections/SLUB/Infra/ansible_esxi_greenbone/tasks/main.yml:48
<localhost> ESTABLISH LOCAL CONNECTION FOR USER: mylinuxuser
<localhost> EXEC /bin/sh -c 'echo ~mylinuxuser && sleep 0'
<localhost> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo /home/mylinuxuser/.ansible/tmp `"&& mkdir "` echo /home/mylinuxuser/.ansible/tmp/ansible-tmp-1641453316.040321-2181692-49029424092710 `" && echo ansible-tmp-1641453316.040321-2181692-49029424092710="` echo /home/mylinuxuser/.ansible/tmp/ansible-tmp-1641453316.040321-2181692-49029424092710 `" ) && sleep 0'
Using module file /home/mylinuxuser/venv/ansible5/lib/python3.8/site-packages/ansible_collections/community/vmware/plugins/modules/vmware_object_role_permission.py
<localhost> PUT /home/mylinuxuser/.ansible/tmp/ansible-local-21815946zs3awgh/tmp22vew_8e TO /home/mylinuxuser/.ansible/tmp/ansible-tmp-1641453316.040321-2181692-49029424092710/AnsiballZ_vmware_object_role_permission.py
<localhost> EXEC /bin/sh -c 'chmod u+x /home/mylinuxuser/.ansible/tmp/ansible-tmp-1641453316.040321-2181692-49029424092710/ /home/mylinuxuser/.ansible/tmp/ansible-tmp-1641453316.040321-2181692-49029424092710/AnsiballZ_vmware_object_role_permission.py && sleep 0'
<localhost> EXEC /bin/sh -c '/home/mylinuxuser/venv/ansible5/bin/python /home/mylinuxuser/.ansible/tmp/ansible-tmp-1641453316.040321-2181692-49029424092710/AnsiballZ_vmware_object_role_permission.py && sleep 0'
The full traceback is:
  File "/tmp/ansible_community.vmware.vmware_object_role_permission_payload_srinuwim/ansible_community.vmware.vmware_object_role_permission_payload.zip/ansible_collections/community/vmware/plugins/modules/vmware_object_role_permission.py", line 244, in process_state
  File "/tmp/ansible_community.vmware.vmware_object_role_permission_payload_srinuwim/ansible_community.vmware.vmware_object_role_permission_payload.zip/ansible_collections/community/vmware/plugins/modules/vmware_object_role_permission.py", line 266, in add_permission
  File "/home/mylinuxuser/venv/ansible5/lib/python3.8/site-packages/pyVmomi/VmomiSupport.py", line 706, in <lambda>
    self.f(*(self.args + (obj,) + args), **kwargs)
  File "/home/mylinuxuser/venv/ansible5/lib/python3.8/site-packages/pyVmomi/VmomiSupport.py", line 512, in _InvokeMethod
    return self._stub.InvokeMethod(self, info, args)
  File "/home/mylinuxuser/venv/ansible5/lib/python3.8/site-packages/pyVmomi/SoapAdapter.py", line 1397, in InvokeMethod
    raise obj # pylint: disable-msg=E0702
fatal: [myesxihost -> localhost]: FAILED! => {
    "changed": false,
    "invocation": {
        "module_args": {
            "group": null,
            "hostname": "myesxihost",
            "object_name": "myesxihost",
            "object_type": "HostSystem",
            "password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
            "port": 443,
            "principal": "gsm_scan",
            "proxy_host": null,
            "proxy_port": null,
            "recursive": true,
            "role": "GSM-Scan",
            "state": "present",
            "username": "root",
            "validate_certs": false
        }
    },
    "msg": "A specified parameter was not correct: entity"
}

PLAY RECAP *********************************
myesxihost                 : ok=5    changed=1    unreachable=0    failed=1    skipped=0    rescued=0    ignored=0
tierpod commented 2 years ago

A faced with such problem. This message comes from vCenter API. Try object_type: 'ComputeResource' (if you don't use HA cluster) or 'ClusterComputeResource' otherwise

coffeegist commented 5 months ago

Any movement on this? I hit the same issue. Standalone vsphere instance.

ihumster commented 5 months ago

@coffeegist please open new issue and describe details, reproduce the bug on the latest version of collection. I'll close the current issue, because it reproduse on unsupported version of collection.