Repository: ansible-collections/community.general

Issue:
community.general.ejabberd_user should report not installed
### Summary

when not installed, `community.general.ejabberd_user` crashes at `ejabberd_user.py, line 126` with error message  `run_command\r\nTypeError: sequence item 0: expected str instance, NoneType found\r\n`

### Issue Type

Bug Report

### Component Name

ejabberd_user

### Ansible Version

```
ansible [core 2.14.5]
  config file = None
  configured module search path = ['/home/john/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /data/john/projects/cf/env/lib/python3.10/site-packages/ansible
  ansible collection location = /home/john/.ansible/collections:/usr/share/ansible/collections
  executable location = /data/john/projects/cf/env/bin/ansible
  python version = 3.10.11 (main, Apr 20 2023, 19:02:41) [GCC 11.2.0] (/data/john/projects/cf/env/bin/python)
  jinja version = 3.1.2
  libyaml = True
```

### Community.general Version

```
# /data/john/projects/cf/env/lib/python3.10/site-packages/ansible_collections
Collection        Version
----------------- -------
community.general 6.6.0
```

### Configuration

```
CONFIG_FILE() = None
```

### OS / Environment

* host OS: ubuntu
* target OS: redhat

### Steps to Reproduce

1. use example playbook, `test.yaml` and change the `hosts` field from `example_server` to your ejabberd server
```yaml
- name: Heuristic Test Playbook for ejabberd_user module
  hosts: example_server
  gather_facts: true
  vars:
    username: admin_user
    password: pass123
    host: localhost
    logging: true
    state: present

  tasks:
    - name: Create ejabberd user
      community.general.ejabberd_user:
        username: "{{ username }}"
        password: "{{ password }}"
        host: "{{ host }}"
        logging: "{{ logging }}"
        state: "{{ state }}"
      register: result

    - name: Print result
      debug:
        var: result
```

2. run as: ` ansible-playbook -i hosts.ini test.yaml -bK`
    * `-bK` is for running the command as root user



### Expected Results

module reports that `ejabberd` software is not installed

### Actual Results

```console (paste below)
ansible-playbook [core 2.14.5]
  config file = None
  configured module search path = ['/home/john/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /data/john/projects/cf/env/lib/python3.10/site-packages/ansible
  ansible collection location = /home/john/.ansible/collections:/usr/share/ansible/collections
  executable location = /data/john/projects/cf/env/bin/ansible-playbook
  python version = 3.10.11 (main, Apr 20 2023, 19:02:41) [GCC 11.2.0] (/data/john/projects/cf/env/bin/python)
  jinja version = 3.1.2
  libyaml = True
No config file found; using defaults
host_list declined parsing /data/john/projects/cf/data/module_yaml/20230706-083357/base/community.general.ejabberd_user/hosts.ini as it did not pass its verify_file() method
script declined parsing /data/john/projects/cf/data/module_yaml/20230706-083357/base/community.general.ejabberd_user/hosts.ini as it did not pass its verify_file() method
auto declined parsing /data/john/projects/cf/data/module_yaml/20230706-083357/base/community.general.ejabberd_user/hosts.ini as it did not pass its verify_file() method
yaml declined parsing /data/john/projects/cf/data/module_yaml/20230706-083357/base/community.general.ejabberd_user/hosts.ini as it did not pass its verify_file() method
Parsed /data/john/projects/cf/data/module_yaml/20230706-083357/base/community.general.ejabberd_user/hosts.ini inventory source with ini plugin
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: test.yaml ************************************************************
1 plays in test.yaml

PLAY [Heuristic Test Playbook for ejabberd_user module] ************************

TASK [Gathering Facts] *********************************************************
task path: /data/john/projects/cf/data/module_yaml/20230706-083357/base/community.general.ejabberd_user/test.yaml:1
[WARNING]: sftp transfer mechanism failed on [redhat1]. Use ANSIBLE_DEBUG=1 to
see detailed information
<redhat1> ESTABLISH SSH CONNECTION FOR USER: None
<redhat1> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 -o 'ControlPath="/home/john/.ansible/cp/cb04d076e0"' redhat1 '/bin/sh -c '"'"'echo ~ && sleep 0'"'"''
<redhat1> (0, b'/home/ansible\n', b'')
<redhat1> ESTABLISH SSH CONNECTION FOR USER: None
<redhat1> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 -o 'ControlPath="/home/john/.ansible/cp/cb04d076e0"' redhat1 '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo /home/ansible/.ansible/tmp `"&& mkdir "` echo /home/ansible/.ansible/tmp/ansible-tmp-1689286651.281073-2855455-116295855183928 `" && echo ansible-tmp-1689286651.281073-2855455-116295855183928="` echo /home/ansible/.ansible/tmp/ansible-tmp-1689286651.281073-2855455-116295855183928 `" ) && sleep 0'"'"''
<redhat1> (0, b'ansible-tmp-1689286651.281073-2855455-116295855183928=/home/ansible/.ansible/tmp/ansible-tmp-1689286651.281073-2855455-116295855183928\n', b'')
<redhat1> Attempting python interpreter discovery
<redhat1> ESTABLISH SSH CONNECTION FOR USER: None
<redhat1> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 -o 'ControlPath="/home/john/.ansible/cp/cb04d076e0"' redhat1 '/bin/sh -c '"'"'echo PLATFORM; uname; echo FOUND; command -v '"'"'"'"'"'"'"'"'python3.11'"'"'"'"'"'"'"'"'; 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 '"'"'"'"'"'"'"'"'/usr/bin/python'"'"'"'"'"'"'"'"'; command -v '"'"'"'"'"'"'"'"'python'"'"'"'"'"'"'"'"'; echo ENDFOUND && sleep 0'"'"''
<redhat1> (0, b'PLATFORM\nLinux\nFOUND\n/usr/bin/python3.6\n/usr/bin/python3\n/usr/libexec/platform-python\n/usr/bin/python2.7\nENDFOUND\n', b'')
<redhat1> ESTABLISH SSH CONNECTION FOR USER: None
<redhat1> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 -o 'ControlPath="/home/john/.ansible/cp/cb04d076e0"' redhat1 '/bin/sh -c '"'"'/usr/bin/python3.6 && sleep 0'"'"''
<redhat1> (0, b'{"platform_dist_result": ["redhat", "8.8", "Ootpa"], "osrelease_content": "NAME=\\"Red Hat Enterprise Linux\\"\\nVERSION=\\"8.8 (Ootpa)\\"\\nID=\\"rhel\\"\\nID_LIKE=\\"fedora\\"\\nVERSION_ID=\\"8.8\\"\\nPLATFORM_ID=\\"platform:el8\\"\\nPRETTY_NAME=\\"Red Hat Enterprise Linux 8.8 (Ootpa)\\"\\nANSI_COLOR=\\"0;31\\"\\nCPE_NAME=\\"cpe:/o:redhat:enterprise_linux:8::baseos\\"\\nHOME_URL=\\"https://www.redhat.com/\\"\\nDOCUMENTATION_URL=\\"https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8\\"\\nBUG_REPORT_URL=\\"https://bugzilla.redhat.com/\\"\\n\\nREDHAT_BUGZILLA_PRODUCT=\\"Red Hat Enterprise Linux 8\\"\\nREDHAT_BUGZILLA_PRODUCT_VERSION=8.8\\nREDHAT_SUPPORT_PRODUCT=\\"Red Hat Enterprise Linux\\"\\nREDHAT_SUPPORT_PRODUCT_VERSION=\\"8.8\\"\\n"}\n', b'')
Using module file /data/john/projects/cf/env/lib/python3.10/site-packages/ansible/modules/setup.py
<redhat1> PUT /home/john/.ansible/tmp/ansible-local-2855451sovuk203/tmpkkbaw9hi TO /home/ansible/.ansible/tmp/ansible-tmp-1689286651.281073-2855455-116295855183928/AnsiballZ_setup.py
<redhat1> SSH: EXEC sftp -b - -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 -o 'ControlPath="/home/john/.ansible/cp/cb04d076e0"' '[redhat1]'
<redhat1> SSH: EXEC scp -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 -o 'ControlPath="/home/john/.ansible/cp/cb04d076e0"' /home/john/.ansible/tmp/ansible-local-2855451sovuk203/tmpkkbaw9hi '[redhat1]:/home/ansible/.ansible/tmp/ansible-tmp-1689286651.281073-2855455-116295855183928/AnsiballZ_setup.py'
<redhat1> (0, b'', b'')
<redhat1> ESTABLISH SSH CONNECTION FOR USER: None
<redhat1> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 -o 'ControlPath="/home/john/.ansible/cp/cb04d076e0"' redhat1 '/bin/sh -c '"'"'chmod u+x /home/ansible/.ansible/tmp/ansible-tmp-1689286651.281073-2855455-116295855183928/ /home/ansible/.ansible/tmp/ansible-tmp-1689286651.281073-2855455-116295855183928/AnsiballZ_setup.py && sleep 0'"'"''
<redhat1> (0, b'', b'')
<redhat1> ESTABLISH SSH CONNECTION FOR USER: None
<redhat1> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 -o 'ControlPath="/home/john/.ansible/cp/cb04d076e0"' -tt redhat1 '/bin/sh -c '"'"'sudo -H -S -p "[sudo via ansible, key=elwhiqpqwqaqkvfeymuwgpqegthgunzn] password:" -u root /bin/sh -c '"'"'"'"'"'"'"'"'echo BECOME-SUCCESS-elwhiqpqwqaqkvfeymuwgpqegthgunzn ; /usr/libexec/platform-python /home/ansible/.ansible/tmp/ansible-tmp-1689286651.281073-2855455-116295855183928/AnsiballZ_setup.py'"'"'"'"'"'"'"'"' && sleep 0'"'"''
Escalation succeeded
<redhat1> (0, b'\r\n\r\n{"ansible_facts": {"ansible_cmdline": {"BOOT_IMAGE": "/boot/vmlinuz-5.19.0-38-generic", "root": "UUID=c241f266-d6f9-48e6-adac-a8a6de782d78", "ro": true, "iommu": "soft", "quiet": true}, "ansible_proc_cmdline": {"BOOT_IMAGE": "/boot/vmlinuz-5.19.0-38-generic", "root": "UUID=c241f266-d6f9-48e6-adac-a8a6de782d78", "ro": true, "iommu": "soft", "quiet": true}, "ansible_system": "Linux", "ansible_kernel": "5.19.0-38-generic", "ansible_kernel_version": "#39~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Fri Mar 17 21:16:15 UTC 2", "ansible_machine": "x86_64", "ansible_python_version": "3.6.8", "ansible_fqdn": "21226525e3fc", "ansible_hostname": "21226525e3fc", "ansible_nodename": "21226525e3fc", "ansible_domain": "", "ansible_userspace_bits": "64", "ansible_architecture": "x86_64", "ansible_userspace_architecture": "x86_64", "ansible_user_id": "root", "ansible_user_uid": 0, "ansible_user_gid": 0, "ansible_user_gecos": "root", "ansible_user_dir": "/root", "ansible_user_shell": "/bin/bash", "ansible_real_user_id": 0, "ansible_effective_user_id": 0, "ansible_real_group_id": 0, "ansible_effective_group_id": 0, "ansible_distribution": "RedHat", "ansible_distribution_release": "Ootpa", "ansible_distribution_version": "8.8", "ansible_distribution_major_version": "8", "ansible_distribution_file_path": "/etc/redhat-release", "ansible_distribution_file_variety": "RedHat", "ansible_distribution_file_parsed": true, "ansible_distribution_file_search_string": "Red Hat", "ansible_os_family": "RedHat", "ansible_is_chroot": false, "ansible_python": {"version": {"major": 3, "minor": 6, "micro": 8, "releaselevel": "final", "serial": 0}, "version_info": [3, 6, 8, "final", 0], "executable": "/usr/libexec/platform-python", "has_sslcontext": true, "type": "cpython"}, "ansible_ssh_host_key_dsa_public": "AAAAB3NzaC1kc3MAAACBAOfD5D7XReBbXejfuPMFAcw6/wsykLBBpTZDl+lL+/TzmslX0eAe9YJbk/UKxd5y5gMd+DJG4WeuqXKZjkq1mYvT8I4Y+ra/lNbyqgzHmHItVpoRQXWUGvKGEdlCiXz6PViRX6h+sLyZR2Rsv2QSe4+QUsURc96H9A2TaUmlgNqVAAAAFQCDKUm9YJCeGlWQiJFJWveLxfafAwAAAIBcWRTyxRED5wKu2lCv3IW9STiu0mBt5ags+2IOW0oTPG/aNG/Z1dHOGsOb1U4jp0VPrAdqh5RWjBf5CvY9JBbwqPWK0coQjxK54VKgKFPkzOF3C/NU9sOFxQdHTiTkIJt2sYARrGXbvxTGx1WrZTXsbofz6JCAFi8ign0qzHukRgAAAIA1x0Bp9m1+E2h5iGYZ9K5tla9zMn1XaEsHML4VhKrczKQ1gMBTQSM3Cwv+ENOXxxllDTWzIv7eMlPM69LJDiwq72VR0dmhafSoU0OsUlgczbcv7Lgs8S8WJsNDtX9cTOleH39GzvUuowcVEUG+d8Z4d+LJDPMbB0s50ImyXr4QOA==", "ansible_ssh_host_key_dsa_public_keytype": "ssh-dss", "ansible_ssh_host_key_rsa_public": "AAAAB3NzaC1yc2EAAAADAQABAAABgQDNOezpGt7hVyTsAj+eMWjJg9i5h4Pxncop0sp/3RqpshAH9RW3LNIIQy+eF5WR0ZFUEwQrJMOjA7M3uEp4Ur2IsNEKSviKsUhUP5fxmizlJ8jdU7DD7A84N8wwWPd351pbphcRKAQstnee64GDKlfon12B/Y7IB2tCATF5N1DFIqPkySwSTEvqKCb+aFKx2wO8V542Z6HdxrG6Lr65OzHnKuQInQFjnQ5jKqlVQrBvw1KgW1RMSd3mJTnfYHctRSu+TAhrrlDPZbu7euxfpwokEgGa1IDyWtdYHlx0GqlGRPz0W632iuejSlcISasfW/OC3iN4srjWKcYkhGxbQNF76tlptJXqmJxZhkLJxy9aCiTKmoPEk/0vBGQ24HflVZcYghtZUwEGRkEm8utsSxQPj/0ezYvlBnFRiuE12pr5TdcFeIXk1ur2CY71y8qGaKA3G/Wgv8IJ/r12Nj0U3SWLaMy9T/5MFQRx94MN5t5pVa6hbqvACrcjhOKKf7j498M=", "ansible_ssh_host_key_rsa_public_keytype": "ssh-rsa", "ansible_ssh_host_key_ecdsa_public": "AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBOMRkki+NYuk5fMvs1LeCPWEN19mJPcHrY9KvzCy0V0S7EKfPKnVCkyJm0haYmYEFxNrJbiqoP4Q7Z29R8tFY6s=", "ansible_ssh_host_key_ecdsa_public_keytype": "ecdsa-sha2-nistp256", "ansible_ssh_host_key_ed25519_public": "AAAAC3NzaC1lZDI1NTE5AAAAICUpPmz48fEFDeOLHWpOJEtB9PW/Bou/ST+6zArsqxf2", "ansible_ssh_host_key_ed25519_public_keytype": "ssh-ed25519", "ansible_virtualization_type": "container", "ansible_virtualization_role": "guest", "ansible_virtualization_tech_guest": ["docker", "container"], "ansible_virtualization_tech_host": ["kvm"], "ansible_system_capabilities_enforced": "True", "ansible_system_capabilities": ["ep"], "ansible_date_time": {"year": "2023", "month": "07", "weekday": "Thursday", "weekday_number": "4", "weeknumber": "28", "day": "13", "hour": "22", "minute": "17", "second": "31", "epoch": "1689286651", "epoch_int": "1689286651", "date": "2023-07-13", "time": "22:17:31", "iso8601_micro": "2023-07-13T22:17:31.996704Z", "iso8601": "2023-07-13T22:17:31Z", "iso8601_basic": "20230713T221731996704", "iso8601_basic_short": "20230713T221731", "tz": "UTC", "tz_dst": "UTC", "tz_offset": "+0000"}, "ansible_hostnqn": "", "ansible_lsb": {}, "ansible_loadavg": {"1m": 2.09, "5m": 2.36, "15m": 2.55}, "ansible_local": {}, "ansible_fibre_channel_wwn": [], "ansible_fips": false, "ansible_apparmor": {"status": "disabled"}, "ansible_processor": ["0", "AuthenticAMD", "AMD Ryzen Threadripper 3960X 24-Core Processor", "1", "AuthenticAMD", "AMD Ryzen Threadripper 3960X 24-Core Processor", "2", "AuthenticAMD", "AMD Ryzen Threadripper 3960X 24-Core Processor", "3", "AuthenticAMD", "AMD Ryzen Threadripper 3960X 24-Core Processor", "4", "AuthenticAMD", "AMD Ryzen Threadripper 3960X 24-Core Processor", "5", "AuthenticAMD", "AMD Ryzen Threadripper 3960X 24-Core Processor", "6", "AuthenticAMD", "AMD Ryzen Threadripper 3960X 24-Core Processor", "7", "AuthenticAMD", "AMD Ryzen Threadripper 3960X 24-Core Processor", "8", "AuthenticAMD", "AMD Ryzen Threadripper 3960X 24-Core Processor", "9", "AuthenticAMD", "AMD Ryzen Threadripper 3960X 24-Core Processor", "10", "AuthenticAMD", "AMD Ryzen Threadripper 3960X 24-Core Processor", "11", "AuthenticAMD", "AMD Ryzen Threadripper 3960X 24-Core Processor", "12", "AuthenticAMD", "AMD Ryzen Threadripper 3960X 24-Core Processor", "13", "AuthenticAMD", "AMD Ryzen Threadripper 3960X 24-Core Processor", "14", "AuthenticAMD", "AMD Ryzen Threadripper 3960X 24-Core Processor", "15", "AuthenticAMD", "AMD Ryzen Threadripper 3960X 24-Core Processor", "16", "AuthenticAMD", "AMD Ryzen Threadripper 3960X 24-Core Processor", "17", "AuthenticAMD", "AMD Ryzen Threadripper 3960X 24-Core Processor", "18", "AuthenticAMD", "AMD Ryzen Threadripper 3960X 24-Core Processor", "19", "AuthenticAMD", "AMD Ryzen Threadripper 3960X 24-Core Processor", "20", "AuthenticAMD", "AMD Ryzen Threadripper 3960X 24-Core Processor", "21", "AuthenticAMD", "AMD Ryzen Threadripper 3960X 24-Core Processor", "22", "AuthenticAMD", "AMD Ryzen Threadripper 3960X 24-Core Processor", "23", "AuthenticAMD", "AMD Ryzen Threadripper 3960X 24-Core Processor", "24", "AuthenticAMD", "AMD Ryzen Threadripper 3960X 24-Core Processor", "25", "AuthenticAMD", "AMD Ryzen Threadripper 3960X 24-Core Processor", "26", "AuthenticAMD", "AMD Ryzen Threadripper 3960X 24-Core Processor", "27", "AuthenticAMD", "AMD Ryzen Threadripper 3960X 24-Core Processor", "28", "AuthenticAMD", "AMD Ryzen Threadripper 3960X 24-Core Processor", "29", "AuthenticAMD", "AMD Ryzen Threadripper 3960X 24-Core Processor", "30", "AuthenticAMD", "AMD Ryzen Threadripper 3960X 24-Core Processor", "31", "AuthenticAMD", "AMD Ryzen Threadripper 3960X 24-Core Processor", "32", "AuthenticAMD", "AMD Ryzen Threadripper 3960X 24-Core Processor", "33", "AuthenticAMD", "AMD Ryzen Threadripper 3960X 24-Core Processor", "34", "AuthenticAMD", "AMD Ryzen Threadripper 3960X 24-Core Processor", "35", "AuthenticAMD", "AMD Ryzen Threadripper 3960X 24-Core Processor", "36", "AuthenticAMD", "AMD Ryzen Threadripper 3960X 24-Core Processor", "37", "AuthenticAMD", "AMD Ryzen Threadripper 3960X 24-Core Processor", "38", "AuthenticAMD", "AMD Ryzen Threadripper 3960X 24-Core Processor", "39", "AuthenticAMD", "AMD Ryzen Threadripper 3960X 24-Core Processor", "40", "AuthenticAMD", "AMD Ryzen Threadripper 3960X 24-Core Processor", "41", "AuthenticAMD", "AMD Ryzen Threadripper 3960X 24-Core Processor", "42", "AuthenticAMD", "AMD Ryzen Threadripper 3960X 24-Core Processor", "43", "AuthenticAMD", "AMD Ryzen Threadripper 3960X 24-Core Processor", "44", "AuthenticAMD", "AMD Ryzen Threadripper 3960X 24-Core Processor", "45", "AuthenticAMD", "AMD Ryzen Threadripper 3960X 24-Core Processor", "46", "AuthenticAMD", "AMD Ryzen Threadripper 3960X 24-Core Processor", "47", "AuthenticAMD", "AMD Ryzen Threadripper 3960X 24-Core Processor"], "ansible_processor_count": 1, "ansible_processor_cores": 24, "ansible_processor_threads_per_core": 2, "ansible_processor_vcpus": 48, "ansible_processor_nproc": 48, "ansible_memtotal_mb": 128662, "ansible_memfree_mb": 44924, "ansible_swaptotal_mb": 2047, "ansible_swapfree_mb": 0, "ansible_memory_mb": {"real": {"total": 128662, "used": 83738, "free": 44924}, "nocache": {"free": 66765, "used": 61897}, "swap": {"total": 2047, "free": 0, "used": 2047, "cached": 40}}, "ansible_bios_date": "05/29/2020", "ansible_bios_vendor": "American Megatrends Inc.", "ansible_bios_version": "P1.70", "ansible_board_asset_tag": "NA", "ansible_board_name": "TRX40 Creator", "ansible_board_serial": "M80-E5006500230", "ansible_board_vendor": "ASRock", "ansible_board_version": "NA", "ansible_chassis_asset_tag": "To Be Filled By O.E.M.", "ansible_chassis_serial": "To Be Filled By O.E.M.", "ansible_chassis_vendor": "To Be Filled By O.E.M.", "ansible_chassis_version": "To Be Filled By O.E.M.", "ansible_form_factor": "Desktop", "ansible_product_name": "Lambda Vector", "ansible_product_serial": "L1TR8ZC528", "ansible_product_uuid": "c0001453-f84d-0000-0000-000000000000", "ansible_product_version": "1", "ansible_system_vendor": "Lambda", "ansible_devices": {"loop1": {"virtual": 1, "links": {"ids": [], "uuids": [], "labels": [], "masters": []}, "vendor": null, "model": null, "sas_address": null, "sas_device_handle": null, "removable": "0", "support_discard": "4096", "partitions": {}, "rotational": "0", "scheduler_mode": "none", "sectors": "943224", "sectorsize": "512", "size": "460.56 MB", "host": "", "holders": []}, "loop19": {"virtual": 1, "links": {"ids": [], "uuids": [], "labels": [], "masters": []}, "vendor": null, "model": null, "sas_address": null, "sas_device_handle": null, "removable": "0", "support_discard": "4096", "partitions": {}, "rotational": "0", "scheduler_mode": "none", "sectors": "109072", "sectorsize": "512", "size": "53.26 MB", "host": "", "holders": []}, "nvme0n1": {"virtual": 1, "links": {"ids": [], "uuids": [], "labels": [], "masters": []}, "vendor": null, "model": "SAMSUNG MZ1L21T9HCLS-00A07", "sas_address": null, "sas_device_handle": null, "serial": "S666NE0T317213", "removable": "0", "support_discard": "512", "partitions": {"nvme0n1p1": {"links": {"ids": [], "uuids": [], "labels": [], "masters": []}, "start": "2048", "sectors": "1048576", "sectorsize": 512, "size": "512.00 MB", "uuid": null, "holders": []}, "nvme0n1p2": {"links": {"ids": [], "uuids": [], "labels": [], "masters": []}, "start": "1050624", "sectors": "3749697536", "sectorsize": 512, "size": "1.75 TB", "uuid": null, "holders": []}}, "rotational": "0", "scheduler_mode": "none", "sectors": "3750748848", "sectorsize": "512", "size": "1.75 TB", "host": "", "holders": []}, "loop17": {"virtual": 1, "links": {"ids": [], "uuids": [], "labels": [], "masters": []}, "vendor": null, "model": null, "sas_address": null, "sas_device_handle": null, "removable": "0", "support_discard": "4096", "partitions": {}, "rotational": "0", "scheduler_mode": "none", "sectors": "109072", "sectorsize": "512", "size": "53.26 MB", "host": "", "holders": []}, "loop8": {"virtual": 1, "links": {"ids": [], "uuids": [], "labels": [], "masters": []}, "vendor": null, "model": null, "sas_address": null, "sas_device_handle": null, "removable": "0", "support_discard": "4096", "partitions": {}, "rotational": "0", "scheduler_mode": "none", "sectors": "904", "sectorsize": "512", "size": "452.00 KB", "host": "", "holders": []}, "loop15": {"virtual": 1, "links": {"ids": [], "uuids": [], "labels": [], "masters": []}, "vendor": null, "model": null, "sas_address": null, "sas_device_handle": null, "removable": "0", "support_discard": "4096", "partitions": {}, "rotational": "0", "scheduler_mode": "none", "sectors": "151256", "sectorsize": "512", "size": "73.86 MB", "host": "", "holders": []}, "loop6": {"virtual": 1, "links": {"ids": [], "uuids": [], "labels": [], "masters": []}, "vendor": null, "model": null, "sas_address": null, "sas_device_handle": null, "removable": "0", "support_discard": "4096", "partitions": {}, "rotational": "0", "scheduler_mode": "none", "sectors": "716168", "sectorsize": "512", "size": "349.69 MB", "host": "", "holders": []}, "loop13": {"virtual": 1, "links": {"ids": [], "uuids": [], "labels": [], "masters": []}, "vendor": null, "model": null, "sas_address": null, "sas_device_handle": null, "removable": "0", "support_discard": "4096", "partitions": {}, "rotational": "0", "scheduler_mode": "none", "sectors": "151256", "sectorsize": "512", "size": "73.86 MB", "host": "", "holders": []}, "loop4": {"virtual": 1, "links": {"ids": [], "uuids": [], "labels": [], "masters": []}, "vendor": null, "model": null, "sas_address": null, "sas_device_handle": null, "removable": "0", "support_discard": "4096", "partitions": {}, "rotational": "0", "scheduler_mode": "none", "sectors": "716176", "sectorsize": "512", "size": "349.70 MB", "host": "", "holders": []}, "loop21": {"virtual": 1, "links": {"ids": [], "uuids": [], "labels": [], "masters": []}, "vendor": null, "model": null, "sas_address": null, "sas_device_handle": null, "removable": "0", "support_discard": "4096", "partitions": {}, "rotational": "0", "scheduler_mode": "none", "sectors": "994336", "sectorsize": "512", "size": "485.52 MB", "host": "", "holders": []}, "loop11": {"virtual": 1, "links": {"ids": [], "uuids": [], "labels": [], "masters": []}, "vendor": null, "model": null, "sas_address": null, "sas_device_handle": null, "removable": "0", "support_discard": "4096", "partitions": {}, "rotational": "0", "scheduler_mode": "none", "sectors": "501752", "sectorsize": "512", "size": "245.00 MB", "host": "", "holders": []}, "loop2": {"virtual": 1, "links": {"ids": [], "uuids": [], "labels": [], "masters": []}, "vendor": null, "model": null, "sas_address": null, "sas_device_handle": null, "removable": "0", "support_discard": "4096", "partitions": {}, "rotational": "0", "scheduler_mode": "none", "sectors": "129944", "sectorsize": "512", "size": "63.45 MB", "host": "", "holders": []}, "loop0": {"virtual": 1, "links": {"ids": [], "uuids": [], "labels": [], "masters": []}, "vendor": null, "model": null, "sas_address": null, "sas_device_handle": null, "removable": "0", "support_discard": "4096", "partitions": {}, "rotational": "0", "scheduler_mode": "none", "sectors": "8", "sectorsize": "512", "size": "4.00 KB", "host": "", "holders": []}, "loop18": {"virtual": 1, "links": {"ids": [], "uuids": [], "labels": [], "masters": []}, "vendor": null, "model": null, "sas_address": null, "sas_device_handle": null, "removable": "0", "support_discard": "4096", "partitions": {}, "rotational": "0", "scheduler_mode": "none", "sectors": "943224", "sectorsize": "512", "size": "460.56 MB", "host": "", "holders": []}, "loop9": {"virtual": 1, "links": {"ids": [], "uuids": [], "labels": [], "masters": []}, "vendor": null, "model": null, "sas_address": null, "sas_device_handle": null, "removable": "0", "support_discard": "4096", "partitions": {}, "rotational": "0", "scheduler_mode": "none", "sectors": "151240", "sectorsize": "512", "size": "73.85 MB", "host": "", "holders": []}, "loop16": {"virtual": 1, "links": {"ids": [], "uuids": [], "labels": [], "masters": []}, "vendor": null, "model": null, "sas_address": null, "sas_device_handle": null, "removable": "0", "support_discard": "4096", "partitions": {}, "rotational": "0", "scheduler_mode": "none", "sectors": "856", "sectorsize": "512", "size": "428.00 KB", "host": "", "holders": []}, "loop7": {"virtual": 1, "links": {"ids": [], "uuids": [], "labels": [], "masters": []}, "vendor": null, "model": null, "sas_address": null, "sas_device_handle": null, "removable": "0", "support_discard": "4096", "partitions": {}, "rotational": "0", "scheduler_mode": "none", "sectors": "0", "sectorsize": "512", "size": "0.00 Bytes", "host": "", "holders": []}, "sda": {"virtual": 1, "links": {"ids": [], "uuids": [], "labels": [], "masters": []}, "vendor": "ATA", "model": "Samsung SSD 870", "sas_address": null, "sas_device_handle": null, "removable": "0", "support_discard": "512", "partitions": {"sda1": {"links": {"ids": [], "uuids": [], "labels": [], "masters": []}, "start": "2048", "sectors": "7814033408", "sectorsize": 512, "size": "3.64 TB", "uuid": null, "holders": []}}, "rotational": "0", "scheduler_mode": "mq-deadline", "sectors": "7814037168", "sectorsize": "512", "size": "3.64 TB", "host": "", "holders": []}, "loop14": {"virtual": 1, "links": {"ids": [], "uuids": [], "labels": [], "masters": []}, "vendor": null, "model": null, "sas_address": null, "sas_device_handle": null, "removable": "0", "support_discard": "4096", "partitions": {}, "rotational": "0", "scheduler_mode": "none", "sectors": "102072", "sectorsize": "512", "size": "49.84 MB", "host": "", "holders": []}, "loop5": {"virtual": 1, "links": {"ids": [], "uuids": [], "labels": [], "masters": []}, "vendor": null, "model": null, "sas_address": null, "sas_device_handle": null, "removable": "0", "support_discard": "4096", "partitions": {}, "rotational": "0", "scheduler_mode": "none", "sectors": "149488", "sectorsize": "512", "size": "72.99 MB", "host": "", "holders": []}, "loop22": {"virtual": 1, "links": {"ids": [], "uuids": [], "labels": [], "masters": []}, "vendor": null, "model": null, "sas_address": null, "sas_device_handle": null, "removable": "0", "support_discard": "4096", "partitions": {}, "rotational": "0", "scheduler_mode": "none", "sectors": "129936", "sectorsize": "512", "size": "63.45 MB", "host": "", "holders": []}, "loop12": {"virtual": 1, "links": {"ids": [], "uuids": [], "labels": [], "masters": []}, "vendor": null, "model": null, "sas_address": null, "sas_device_handle": null, "removable": "0", "support_discard": "4096", "partitions": {}, "rotational": "0", "scheduler_mode": "none", "sectors": "75960", "sectorsize": "512", "size": "37.09 MB", "host": "", "holders": []}, "loop3": {"virtual": 1, "links": {"ids": [], "uuids": [], "labels": [], "masters": []}, "vendor": null, "model": null, "sas_address": null, "sas_device_handle": null, "removable": "0", "support_discard": "4096", "partitions": {}, "rotational": "0", "scheduler_mode": "none", "sectors": "501768", "sectorsize": "512", "size": "245.00 MB", "host": "", "holders": []}, "loop20": {"virtual": 1, "links": {"ids": [], "uuids": [], "labels": [], "masters": []}, "vendor": null, "model": null, "sas_address": null, "sas_device_handle": null, "removable": "0", "support_discard": "4096", "partitions": {}, "rotational": "0", "scheduler_mode": "none", "sectors": "955472", "sectorsize": "512", "size": "466.54 MB", "host": "", "holders": []}, "loop10": {"virtual": 1, "links": {"ids": [], "uuids": [], "labels": [], "masters": []}, "vendor": null, "model": null, "sas_address": null, "sas_device_handle": null, "removable": "0", "support_discard": "4096", "partitions": {}, "rotational": "0", "scheduler_mode": "none", "sectors": "187776", "sectorsize": "512", "size": "91.69 MB", "host": "", "holders": []}}, "ansible_device_links": {"ids": {}, "uuids": {}, "labels": {}, "masters": {}}, "ansible_uptime_seconds": 7792941, "ansible_lvm": "N/A", "ansible_mounts": [{"mount": "/etc/resolv.conf", "device": "/dev/nvme0n1p2", "fstype": "ext4", "options": "rw,relatime,errors=remount-ro,stripe=32,bind", "size_total": 1888559353856, "size_available": 394266681344, "block_size": 4096, "block_total": 461074061, "block_available": 96256514, "block_used": 364817547, "inode_total": 117178368, "inode_available": 112426446, "inode_used": 4751922, "uuid": "N/A"}, {"mount": "/etc/hostname", "device": "/dev/nvme0n1p2", "fstype": "ext4", "options": "rw,relatime,errors=remount-ro,stripe=32,bind", "size_total": 1888559353856, "size_available": 394266681344, "block_size": 4096, "block_total": 461074061, "block_available": 96256514, "block_used": 364817547, "inode_total": 117178368, "inode_available": 112426446, "inode_used": 4751922, "uuid": "N/A"}, {"mount": "/etc/hosts", "device": "/dev/nvme0n1p2", "fstype": "ext4", "options": "rw,relatime,errors=remount-ro,stripe=32,bind", "size_total": 1888559353856, "size_available": 394266681344, "block_size": 4096, "block_total": 461074061, "block_available": 96256514, "block_used": 364817547, "inode_total": 117178368, "inode_available": 112426446, "inode_used": 4751922, "uuid": "N/A"}], "ansible_env": {"LANG": "C.utf8", "SUDO_GID": "1000", "SUDO_COMMAND": "/bin/sh -c echo BECOME-SUCCESS-elwhiqpqwqaqkvfeymuwgpqegthgunzn ; /usr/libexec/platform-python /home/ansible/.ansible/tmp/ansible-tmp-1689286651.281073-2855455-116295855183928/AnsiballZ_setup.py", "USER": "root", "PWD": "/home/ansible", "HOME": "/root", "SUDO_USER": "ansible", "SUDO_UID": "1000", "MAIL": "/var/mail/ansible", "SHELL": "/bin/bash", "TERM": "screen", "SHLVL": "1", "LOGNAME": "root", "PATH": "/sbin:/bin:/usr/sbin:/usr/bin", "_": "/usr/libexec/platform-python", "LC_CTYPE": "C.UTF-8", "LC_ALL": "C.utf8", "LC_MESSAGES": "C.utf8"}, "ansible_selinux_python_present": true, "ansible_selinux": {"status": "disabled"}, "ansible_dns": {"search": ["cse.eng.auburn.edu"], "nameservers": ["127.0.0.11"], "options": {"edns0": true, "trust-ad": true, "ndots": "0"}}, "ansible_service_mgr": "sshd", "ansible_iscsi_iqn": "", "ansible_pkg_mgr": "dnf", "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'Shared connection to 10.1.1.4 closed.\r\n')
<redhat1> ESTABLISH SSH CONNECTION FOR USER: None
<redhat1> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 -o 'ControlPath="/home/john/.ansible/cp/cb04d076e0"' redhat1 '/bin/sh -c '"'"'rm -f -r /home/ansible/.ansible/tmp/ansible-tmp-1689286651.281073-2855455-116295855183928/ > /dev/null 2>&1 && sleep 0'"'"''
<redhat1> (0, b'', b'')
ok: [redhat1]

TASK [Create ejabberd user] ****************************************************
task path: /data/john/projects/cf/data/module_yaml/20230706-083357/base/community.general.ejabberd_user/test.yaml:12
[WARNING]: sftp transfer mechanism failed on [redhat1]. Use ANSIBLE_DEBUG=1 to
see detailed information
<redhat1> ESTABLISH SSH CONNECTION FOR USER: None
<redhat1> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 -o 'ControlPath="/home/john/.ansible/cp/cb04d076e0"' redhat1 '/bin/sh -c '"'"'echo ~ && sleep 0'"'"''
<redhat1> (0, b'/home/ansible\n', b'')
<redhat1> ESTABLISH SSH CONNECTION FOR USER: None
<redhat1> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 -o 'ControlPath="/home/john/.ansible/cp/cb04d076e0"' redhat1 '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo /home/ansible/.ansible/tmp `"&& mkdir "` echo /home/ansible/.ansible/tmp/ansible-tmp-1689286652.3983538-2855681-65628217140059 `" && echo ansible-tmp-1689286652.3983538-2855681-65628217140059="` echo /home/ansible/.ansible/tmp/ansible-tmp-1689286652.3983538-2855681-65628217140059 `" ) && sleep 0'"'"''
<redhat1> (0, b'ansible-tmp-1689286652.3983538-2855681-65628217140059=/home/ansible/.ansible/tmp/ansible-tmp-1689286652.3983538-2855681-65628217140059\n', b'')
Using module file /data/john/projects/cf/env/lib/python3.10/site-packages/ansible_collections/community/general/plugins/modules/ejabberd_user.py
<redhat1> PUT /home/john/.ansible/tmp/ansible-local-2855451sovuk203/tmpkawbqk22 TO /home/ansible/.ansible/tmp/ansible-tmp-1689286652.3983538-2855681-65628217140059/AnsiballZ_ejabberd_user.py
<redhat1> SSH: EXEC sftp -b - -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 -o 'ControlPath="/home/john/.ansible/cp/cb04d076e0"' '[redhat1]'
<redhat1> SSH: EXEC scp -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 -o 'ControlPath="/home/john/.ansible/cp/cb04d076e0"' /home/john/.ansible/tmp/ansible-local-2855451sovuk203/tmpkawbqk22 '[redhat1]:/home/ansible/.ansible/tmp/ansible-tmp-1689286652.3983538-2855681-65628217140059/AnsiballZ_ejabberd_user.py'
<redhat1> (0, b'', b'')
<redhat1> ESTABLISH SSH CONNECTION FOR USER: None
<redhat1> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 -o 'ControlPath="/home/john/.ansible/cp/cb04d076e0"' redhat1 '/bin/sh -c '"'"'chmod u+x /home/ansible/.ansible/tmp/ansible-tmp-1689286652.3983538-2855681-65628217140059/ /home/ansible/.ansible/tmp/ansible-tmp-1689286652.3983538-2855681-65628217140059/AnsiballZ_ejabberd_user.py && sleep 0'"'"''
<redhat1> (0, b'', b'')
<redhat1> ESTABLISH SSH CONNECTION FOR USER: None
<redhat1> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 -o 'ControlPath="/home/john/.ansible/cp/cb04d076e0"' -tt redhat1 '/bin/sh -c '"'"'sudo -H -S -p "[sudo via ansible, key=pjxfdmchdyzblhvbmhldpzvtwbkikrvm] password:" -u root /bin/sh -c '"'"'"'"'"'"'"'"'echo BECOME-SUCCESS-pjxfdmchdyzblhvbmhldpzvtwbkikrvm ; /usr/libexec/platform-python /home/ansible/.ansible/tmp/ansible-tmp-1689286652.3983538-2855681-65628217140059/AnsiballZ_ejabberd_user.py'"'"'"'"'"'"'"'"' && sleep 0'"'"''
Escalation succeeded
<redhat1> (1, b'\r\nTraceback (most recent call last):\r\n  File "/home/ansible/.ansible/tmp/ansible-tmp-1689286652.3983538-2855681-65628217140059/AnsiballZ_ejabberd_user.py", line 107, in <module>\r\n    _ansiballz_main()\r\n  File "/home/ansible/.ansible/tmp/ansible-tmp-1689286652.3983538-2855681-65628217140059/AnsiballZ_ejabberd_user.py", line 99, in _ansiballz_main\r\n    invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)\r\n  File "/home/ansible/.ansible/tmp/ansible-tmp-1689286652.3983538-2855681-65628217140059/AnsiballZ_ejabberd_user.py", line 48, in invoke_module\r\n    run_name=\'__main__\', alter_sys=True)\r\n  File "/usr/lib64/python3.6/runpy.py", line 205, in run_module\r\n    return _run_module_code(code, init_globals, run_name, mod_spec)\r\n  File "/usr/lib64/python3.6/runpy.py", line 96, in _run_module_code\r\n    mod_name, mod_spec, pkg_name, script_name)\r\n  File "/usr/lib64/python3.6/runpy.py", line 85, in _run_code\r\n    exec(code, run_globals)\r\n  File "/tmp/ansible_community.general.ejabberd_user_payload_51wvisjy/ansible_community.general.ejabberd_user_payload.zip/ansible_collections/community/general/plugins/modules/ejabberd_user.py", line 195, in <module>\r\n  File "/tmp/ansible_community.general.ejabberd_user_payload_51wvisjy/ansible_community.general.ejabberd_user_payload.zip/ansible_collections/community/general/plugins/modules/ejabberd_user.py", line 175, in main\r\n  File "/tmp/ansible_community.general.ejabberd_user_payload_51wvisjy/ansible_community.general.ejabberd_user_payload.zip/ansible_collections/community/general/plugins/modules/ejabberd_user.py", line 113, in exists\r\n  File "/tmp/ansible_community.general.ejabberd_user_payload_51wvisjy/ansible_community.general.ejabberd_user_payload.zip/ansible_collections/community/general/plugins/modules/ejabberd_user.py", line 126, in run_command\r\nTypeError: sequence item 0: expected str instance, NoneType found\r\n', b'Shared connection to 10.1.1.4 closed.\r\n')
<redhat1> Failed to connect to the host via ssh: Shared connection to 10.1.1.4 closed.
<redhat1> ESTABLISH SSH CONNECTION FOR USER: None
<redhat1> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 -o 'ControlPath="/home/john/.ansible/cp/cb04d076e0"' redhat1 '/bin/sh -c '"'"'rm -f -r /home/ansible/.ansible/tmp/ansible-tmp-1689286652.3983538-2855681-65628217140059/ > /dev/null 2>&1 && sleep 0'"'"''
<redhat1> (0, b'', b'')
fatal: [redhat1]: FAILED! => {
    "changed": false,
    "module_stderr": "Shared connection to 10.1.1.4 closed.\r\n",
    "module_stdout": "\r\nTraceback (most recent call last):\r\n  File \"/home/ansible/.ansible/tmp/ansible-tmp-1689286652.3983538-2855681-65628217140059/AnsiballZ_ejabberd_user.py\", line 107, in <module>\r\n    _ansiballz_main()\r\n  File \"/home/ansible/.ansible/tmp/ansible-tmp-1689286652.3983538-2855681-65628217140059/AnsiballZ_ejabberd_user.py\", line 99, in _ansiballz_main\r\n    invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)\r\n  File \"/home/ansible/.ansible/tmp/ansible-tmp-1689286652.3983538-2855681-65628217140059/AnsiballZ_ejabberd_user.py\", line 48, in invoke_module\r\n    run_name='__main__', alter_sys=True)\r\n  File \"/usr/lib64/python3.6/runpy.py\", line 205, in run_module\r\n    return _run_module_code(code, init_globals, run_name, mod_spec)\r\n  File \"/usr/lib64/python3.6/runpy.py\", line 96, in _run_module_code\r\n    mod_name, mod_spec, pkg_name, script_name)\r\n  File \"/usr/lib64/python3.6/runpy.py\", line 85, in _run_code\r\n    exec(code, run_globals)\r\n  File \"/tmp/ansible_community.general.ejabberd_user_payload_51wvisjy/ansible_community.general.ejabberd_user_payload.zip/ansible_collections/community/general/plugins/modules/ejabberd_user.py\", line 195, in <module>\r\n  File \"/tmp/ansible_community.general.ejabberd_user_payload_51wvisjy/ansible_community.general.ejabberd_user_payload.zip/ansible_collections/community/general/plugins/modules/ejabberd_user.py\", line 175, in main\r\n  File \"/tmp/ansible_community.general.ejabberd_user_payload_51wvisjy/ansible_community.general.ejabberd_user_payload.zip/ansible_collections/community/general/plugins/modules/ejabberd_user.py\", line 113, in exists\r\n  File \"/tmp/ansible_community.general.ejabberd_user_payload_51wvisjy/ansible_community.general.ejabberd_user_payload.zip/ansible_collections/community/general/plugins/modules/ejabberd_user.py\", line 126, in run_command\r\nTypeError: sequence item 0: expected str instance, NoneType found\r\n",
    "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error",
    "rc": 1
}

PLAY RECAP *********************************************************************
redhat1                    : ok=1    changed=0    unreachable=0    failed=1    skipped=0    rescued=0    ignored=0 
```


### Code of Conduct

- [x] I agree to follow the Ansible Code of Conduct


Discussion:
Files identified in the description:
* [`plugins/modules/ejabberd_user.py`](https://github.com/ansible-collections/community.general/blob/main/plugins/modules/ejabberd_user.py)

If these files are incorrect, please update the `component name` section of the description or use the `!component` bot command.

[click here for bot help](https://github.com/ansible/ansibullbot/blob/devel/ISSUE_HELP.md)
<!--- boilerplate: components_banner --->
cc @privateip
[click here for bot help](https://github.com/ansible/ansibullbot/blob/devel/ISSUE_HELP.md)
<!--- boilerplate: notify --->

Resolving patch:
diff --git a/plugins/modules/ejabberd_user.py b/plugins/modules/ejabberd_user.py
--- a/plugins/modules/ejabberd_user.py
+++ b/plugins/modules/ejabberd_user.py
@@ -122,7 +122,7 @@ def run_command(self, cmd, options):
         """ This method will run the any command specified and return the
         returns using the Ansible common module
         """
-        cmd = [self.module.get_bin_path('ejabberdctl'), cmd] + options
+        cmd = [self.module.get_bin_path('ejabberdctl', required=True), cmd] + options
         self.log('command: %s' % " ".join(cmd))
         return self.module.run_command(cmd)
 


Test patch: