paser-group/iac-compiler-quality

Bug Reporting 07/15/2023

Closed this issue · 4 comments

Sorry for the delay but I needed to tinker a little bit more and get these drafts ready before I submitted anything. Please read on for the status of the bug reports. I will also post my drafts here for you to look at.

summary

  • See sections below for more details. I get the feeling that this module, community.general.ejabberd_user, and the previously tested ucs module are experiencing similar errors due to the modules making the assumption that the target software is currently installed. however I cannot verify it for this module due to the reason above.
    • this still seems like it could be a legitimate reason to submit a bug report but I would like your thoughts on this.

community.general.ejabberd_user

  • I played around with this module some more and found that the None type error goes away when ejabberd is installed on target server and set up according to the module (our original results were ran without the software installed). please see the following sections for differences in output
    • output for steps to reproduce when ejabberd IS installed
    • output for steps to reproduce when ejabberd IS NOT installed
  • Case for when ejabberd is installed still fails but it seems more due to the server configuration on my side

community.network.bigmon_chain

  • this module targets Arista Big Switch software which I cannot get my hands on and test
  • since I am not able to use this software, it would be difficult to provide further information if the devs were to ask about it

draft for community.general.ejabberd_user bug report

summary

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

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

steps to reproduce

  1. use example playbook, example.yaml and change the hosts field from example_server to your ejabberd server
- 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
  1. run as: ansible-playbook -i hosts.ini example.yaml -bK

    • -bK is for running the command as root user
  2. results:

    • expected output - user is added to ejabberd
    • actual output - see either sections:
      • output for steps to reproducewhenejabberd IS installed
      • output for steps to reproducewhenejabberd IS NOT installed

output for steps to reproduce when ejabberd IS installed

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
<ubuntu1> ESTABLISH SSH CONNECTION FOR USER: None
<ubuntu1> 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/492fe51149"' ubuntu1 '/bin/sh -c '"'"'echo ~ && sleep 0'"'"''
<ubuntu1> (0, b'/home/ansible\n', b'')
<ubuntu1> ESTABLISH SSH CONNECTION FOR USER: None
<ubuntu1> 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/492fe51149"' ubuntu1 '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo /home/ansible/.ansible/tmp `"&& mkdir "` echo /home/ansible/.ansible/tmp/ansible-tmp-1689273697.8672519-2839625-12046522880196 `" && echo ansible-tmp-1689273697.8672519-2839625-12046522880196="` echo /home/ansible/.ansible/tmp/ansible-tmp-1689273697.8672519-2839625-12046522880196 `" ) && sleep 0'"'"''
<ubuntu1> (0, b'ansible-tmp-1689273697.8672519-2839625-12046522880196=/home/ansible/.ansible/tmp/ansible-tmp-1689273697.8672519-2839625-12046522880196\n', b'')
<ubuntu1> Attempting python interpreter discovery
<ubuntu1> ESTABLISH SSH CONNECTION FOR USER: None
<ubuntu1> 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/492fe51149"' ubuntu1 '/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'"'"''
<ubuntu1> (0, b'PLATFORM\nLinux\nFOUND\n/usr/bin/python3.10\n/usr/bin/python3.7\n/usr/bin/python3\n/usr/bin/python2.7\n/usr/bin/python\n/usr/bin/python\nENDFOUND\n', b'')
<ubuntu1> ESTABLISH SSH CONNECTION FOR USER: None
<ubuntu1> 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/492fe51149"' ubuntu1 '/bin/sh -c '"'"'/usr/bin/python3.10 && sleep 0'"'"''
<ubuntu1> (0, b'{"platform_dist_result": [], "osrelease_content": "PRETTY_NAME=\\"Ubuntu 22.04.2 LTS\\"\\nNAME=\\"Ubuntu\\"\\nVERSION_ID=\\"22.04\\"\\nVERSION=\\"22.04.2 LTS (Jammy Jellyfish)\\"\\nVERSION_CODENAME=jammy\\nID=ubuntu\\nID_LIKE=debian\\nHOME_URL=\\"https://www.ubuntu.com/\\"\\nSUPPORT_URL=\\"https://help.ubuntu.com/\\"\\nBUG_REPORT_URL=\\"https://bugs.launchpad.net/ubuntu/\\"\\nPRIVACY_POLICY_URL=\\"https://www.ubuntu.com/legal/terms-and-policies/privacy-policy\\"\\nUBUNTU_CODENAME=jammy\\n"}\n', b'')
Using module file /data/john/projects/cf/env/lib/python3.10/site-packages/ansible/modules/setup.py
<ubuntu1> PUT /home/john/.ansible/tmp/ansible-local-2839621qz5lihcq/tmpi2_nzzjc TO /home/ansible/.ansible/tmp/ansible-tmp-1689273697.8672519-2839625-12046522880196/AnsiballZ_setup.py
<ubuntu1> 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/492fe51149"' '[ubuntu1]'
<ubuntu1> (0, b'sftp> put /home/john/.ansible/tmp/ansible-local-2839621qz5lihcq/tmpi2_nzzjc /home/ansible/.ansible/tmp/ansible-tmp-1689273697.8672519-2839625-12046522880196/AnsiballZ_setup.py\n', b'')
<ubuntu1> ESTABLISH SSH CONNECTION FOR USER: None
<ubuntu1> 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/492fe51149"' ubuntu1 '/bin/sh -c '"'"'chmod u+x /home/ansible/.ansible/tmp/ansible-tmp-1689273697.8672519-2839625-12046522880196/ /home/ansible/.ansible/tmp/ansible-tmp-1689273697.8672519-2839625-12046522880196/AnsiballZ_setup.py && sleep 0'"'"''
<ubuntu1> (0, b'', b'')
<ubuntu1> ESTABLISH SSH CONNECTION FOR USER: None
<ubuntu1> 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/492fe51149"' -tt ubuntu1 '/bin/sh -c '"'"'sudo -H -S -p "[sudo via ansible, key=lwtxevgffbhiezdhvexzjhsxscertwli] password:" -u root /bin/sh -c '"'"'"'"'"'"'"'"'echo BECOME-SUCCESS-lwtxevgffbhiezdhvexzjhsxscertwli ; /usr/bin/python3 /home/ansible/.ansible/tmp/ansible-tmp-1689273697.8672519-2839625-12046522880196/AnsiballZ_setup.py'"'"'"'"'"'"'"'"' && sleep 0'"'"''
Escalation succeeded
<ubuntu1> (0, b'\r\n\r\n{"ansible_facts": {"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_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.10.6", "ansible_fqdn": "5799fea94b2f", "ansible_hostname": "5799fea94b2f", "ansible_nodename": "5799fea94b2f", "ansible_domain": "", "ansible_userspace_bits": "64", "ansible_architecture": "x86_64", "ansible_userspace_architecture": "x86_64", "ansible_machine_id": "3595d317c92c47d0a531aea09591b572", "ansible_distribution": "Ubuntu", "ansible_distribution_release": "jammy", "ansible_distribution_version": "22.04", "ansible_distribution_major_version": "22", "ansible_distribution_file_path": "/etc/os-release", "ansible_distribution_file_variety": "Debian", "ansible_distribution_file_parsed": true, "ansible_os_family": "Debian", "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_is_chroot": false, "ansible_python": {"version": {"major": 3, "minor": 10, "micro": 6, "releaselevel": "final", "serial": 0}, "version_info": [3, 10, 6, "final", 0], "executable": "/usr/bin/python3", "has_sslcontext": true, "type": "cpython"}, "ansible_ssh_host_key_rsa_public": "AAAAB3NzaC1yc2EAAAADAQABAAABgQCfdRylwgfkHAPLVVMNWUhmqrH29xfFN+cgSH/lpUTPxI4jIpnTfPp0MPzTOA2V2NvZJtxAfK7pjUZRheW4XPuO8uCkrU47jN5CbGm8LihQOIxDraFXKjvVUJiEza0zHTlQtDa7J/D0GucBWPH2SultMnaMEgJJ8YoKTBrftHCoBV5IX/4Fz2pdcQdOkJvgyXcVqVB5amE/1cGGLm1tRd6yJqovlLDZT3QMZjIBdoh7L2EUdiqV6uOAM9+Xo1d8TFZtx/AQ8I9XExfPLnaAqw9Zv7c3eJyq1BZVmDd2Z5RejBSC5e3+sH8LmxHfUHmYt0byCuAdUI2PU7njrk1p98HydUV45VOz6TH7Sr94SRyoDejBNtBddbvZlb+gLJR47cudK/MkKpRFYJ/bmxaHVYP7jzQp+lJGaNF+o9Gejf+GBmRHOzY1eH01xNYUqAfSj9PCVHLr3w1ozPiLCT2wkTg1SyZ9YU4qUsLq94UlsDiwp+eEokLKlAfNXn9LjIipppE=", "ansible_ssh_host_key_rsa_public_keytype": "ssh-rsa", "ansible_ssh_host_key_ecdsa_public": "AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBGw56oMqVC+0wTNBIJEfmazt/LIrGCrRf1m599uG0Th67Xb0l+zSahA9guAHiSP/7+NcFVrQuIzbQpfjHbzPZVk=", "ansible_ssh_host_key_ecdsa_public_keytype": "ecdsa-sha2-nistp256", "ansible_ssh_host_key_ed25519_public": "AAAAC3NzaC1lZDI1NTE5AAAAIBft1shMMYFSwKEVaDG5SAdMhNN2HFrdz/Oqm6nfIzXF", "ansible_ssh_host_key_ed25519_public_keytype": "ssh-ed25519", "ansible_loadavg": {"1m": 2.0107421875, "5m": 2.2685546875, "15m": 2.5849609375}, "ansible_system_capabilities_enforced": "True", "ansible_system_capabilities": ["ep"], "ansible_env": {"SUDO_GID": "1000", "MAIL": "/var/mail/root", "USER": "root", "HOME": "/root", "SUDO_UID": "1000", "LOGNAME": "root", "TERM": "screen", "PATH": "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin", "LANG": "C.utf8", "SUDO_COMMAND": "/bin/sh -c echo BECOME-SUCCESS-lwtxevgffbhiezdhvexzjhsxscertwli ; /usr/bin/python3 /home/ansible/.ansible/tmp/ansible-tmp-1689273697.8672519-2839625-12046522880196/AnsiballZ_setup.py", "SHELL": "/bin/bash", "SUDO_USER": "ansible", "PWD": "/home/ansible", "LC_CTYPE": "C.UTF-8", "LC_ALL": "C.utf8", "LC_MESSAGES": "C.utf8"}, "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": 45055, "ansible_swaptotal_mb": 2047, "ansible_swapfree_mb": 0, "ansible_memory_mb": {"real": {"total": 128662, "used": 83607, "free": 45055}, "nocache": {"free": 66841, "used": 61821}, "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": 7779987, "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": 394283237376, "block_size": 4096, "block_total": 461074061, "block_available": 96260556, "block_used": 364813505, "inode_total": 117178368, "inode_available": 112426460, "inode_used": 4751908, "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": 394283237376, "block_size": 4096, "block_total": 461074061, "block_available": 96260556, "block_used": 364813505, "inode_total": 117178368, "inode_available": 112426460, "inode_used": 4751908, "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": 394283237376, "block_size": 4096, "block_total": 461074061, "block_available": 96260556, "block_used": 364813505, "inode_total": 117178368, "inode_available": 112426460, "inode_used": 4751908, "uuid": "N/A"}], "ansible_fibre_channel_wwn": [], "ansible_lsb": {"id": "Ubuntu", "description": "Ubuntu 22.04.2 LTS", "release": "22.04", "codename": "jammy", "major_release": "22"}, "ansible_virtualization_type": "docker", "ansible_virtualization_role": "guest", "ansible_virtualization_tech_guest": ["docker", "container"], "ansible_virtualization_tech_host": ["kvm"], "ansible_selinux_python_present": true, "ansible_selinux": {"status": "disabled"}, "ansible_hostnqn": "", "ansible_apparmor": {"status": "disabled"}, "ansible_local": {}, "ansible_iscsi_iqn": "", "ansible_date_time": {"year": "2023", "month": "07", "weekday": "Thursday", "weekday_number": "4", "weeknumber": "28", "day": "13", "hour": "18", "minute": "41", "second": "38", "epoch": "1689273698", "epoch_int": "1689273698", "date": "2023-07-13", "time": "18:41:38", "iso8601_micro": "2023-07-13T18:41:38.728731Z", "iso8601": "2023-07-13T18:41:38Z", "iso8601_basic": "20230713T184138728731", "iso8601_basic_short": "20230713T184138", "tz": "UTC", "tz_dst": "UTC", "tz_offset": "+0000"}, "ansible_dns": {"search": ["cse.eng.auburn.edu"], "nameservers": ["127.0.0.11"], "options": {"edns0": true, "trust-ad": true, "ndots": "0"}}, "ansible_fips": false, "ansible_pkg_mgr": "apt", "ansible_service_mgr": "sshd", "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.1 closed.\r\n')
<ubuntu1> ESTABLISH SSH CONNECTION FOR USER: None
<ubuntu1> 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/492fe51149"' ubuntu1 '/bin/sh -c '"'"'rm -f -r /home/ansible/.ansible/tmp/ansible-tmp-1689273697.8672519-2839625-12046522880196/ > /dev/null 2>&1 && sleep 0'"'"''
<ubuntu1> (0, b'', b'')
ok: [ubuntu1]

TASK [Create ejabberd user] ****************************************************
task path: /data/john/projects/cf/data/module_yaml/20230706-083357/base/community.general.ejabberd_user/test.yaml:12
<ubuntu1> ESTABLISH SSH CONNECTION FOR USER: None
<ubuntu1> 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/492fe51149"' ubuntu1 '/bin/sh -c '"'"'echo ~ && sleep 0'"'"''
<ubuntu1> (0, b'/home/ansible\n', b'')
<ubuntu1> ESTABLISH SSH CONNECTION FOR USER: None
<ubuntu1> 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/492fe51149"' ubuntu1 '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo /home/ansible/.ansible/tmp `"&& mkdir "` echo /home/ansible/.ansible/tmp/ansible-tmp-1689273698.8473754-2839702-70290588269714 `" && echo ansible-tmp-1689273698.8473754-2839702-70290588269714="` echo /home/ansible/.ansible/tmp/ansible-tmp-1689273698.8473754-2839702-70290588269714 `" ) && sleep 0'"'"''
<ubuntu1> (0, b'ansible-tmp-1689273698.8473754-2839702-70290588269714=/home/ansible/.ansible/tmp/ansible-tmp-1689273698.8473754-2839702-70290588269714\n', b'')
Using module file /data/john/projects/cf/env/lib/python3.10/site-packages/ansible_collections/community/general/plugins/modules/ejabberd_user.py
<ubuntu1> PUT /home/john/.ansible/tmp/ansible-local-2839621qz5lihcq/tmp0817xtmo TO /home/ansible/.ansible/tmp/ansible-tmp-1689273698.8473754-2839702-70290588269714/AnsiballZ_ejabberd_user.py
<ubuntu1> 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/492fe51149"' '[ubuntu1]'
<ubuntu1> (0, b'sftp> put /home/john/.ansible/tmp/ansible-local-2839621qz5lihcq/tmp0817xtmo /home/ansible/.ansible/tmp/ansible-tmp-1689273698.8473754-2839702-70290588269714/AnsiballZ_ejabberd_user.py\n', b'')
<ubuntu1> ESTABLISH SSH CONNECTION FOR USER: None
<ubuntu1> 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/492fe51149"' ubuntu1 '/bin/sh -c '"'"'chmod u+x /home/ansible/.ansible/tmp/ansible-tmp-1689273698.8473754-2839702-70290588269714/ /home/ansible/.ansible/tmp/ansible-tmp-1689273698.8473754-2839702-70290588269714/AnsiballZ_ejabberd_user.py && sleep 0'"'"''
<ubuntu1> (0, b'', b'')
<ubuntu1> ESTABLISH SSH CONNECTION FOR USER: None
<ubuntu1> 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/492fe51149"' -tt ubuntu1 '/bin/sh -c '"'"'sudo -H -S -p "[sudo via ansible, key=eaaivtwloclpxxgnoefadhslyenpimzr] password:" -u root /bin/sh -c '"'"'"'"'"'"'"'"'echo BECOME-SUCCESS-eaaivtwloclpxxgnoefadhslyenpimzr ; /usr/bin/python3 /home/ansible/.ansible/tmp/ansible-tmp-1689273698.8473754-2839702-70290588269714/AnsiballZ_ejabberd_user.py'"'"'"'"'"'"'"'"' && sleep 0'"'"''
Escalation succeeded
<ubuntu1> (1, b'\r\n\r\n{"rc": 1, "failed": true, "msg": "", "invocation": {"module_args": {"username": "admin_user", "password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER", "host": "localhost", "logging": true, "state": "present"}}}\r\n', b'Shared connection to 10.1.1.1 closed.\r\n')
<ubuntu1> Failed to connect to the host via ssh: Shared connection to 10.1.1.1 closed.
<ubuntu1> ESTABLISH SSH CONNECTION FOR USER: None
<ubuntu1> 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/492fe51149"' ubuntu1 '/bin/sh -c '"'"'rm -f -r /home/ansible/.ansible/tmp/ansible-tmp-1689273698.8473754-2839702-70290588269714/ > /dev/null 2>&1 && sleep 0'"'"''
<ubuntu1> (0, b'', b'')
fatal: [ubuntu1]: FAILED! => {
    "changed": false,
    "invocation": {
        "module_args": {
            "host": "localhost",
            "logging": true,
            "password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
            "state": "present",
            "username": "admin_user"
        }
    },
    "msg": "",
    "rc": 1
}

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

output for steps to reproduce when ejabberd IS NOT installed

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   

ejabberd version

The node ejabberd@localhost is started with status: started
ejabberd 21.12-1 is running in that node

ejabberd config

###
###              ejabberd configuration file
###
### The parameters used in this configuration file are explained at
###
###       https://docs.ejabberd.im/admin/configuration
###
### The configuration file is written in YAML.
### *******************************************************
### *******           !!! WARNING !!!               *******
### *******     YAML IS INDENTATION SENSITIVE       *******
### ******* MAKE SURE YOU INDENT SECTIONS CORRECTLY *******
### *******************************************************
### Refer to http://en.wikipedia.org/wiki/YAML for the brief description.
###


# loglevel: Verbosity of log files generated by ejabberd
loglevel: info

# rotation: Disable ejabberd's internal log rotation, as the Debian package
# uses logrotate(8).
log_rotate_count: 0

# hosts: Domains served by ejabberd.
# You can define one or several, for example:
# hosts:
#   - "example.net"
#   - "example.com"
#   - "example.org"

hosts:
  - localhost

certfiles:
  - "/etc/ejabberd/ejabberd.pem"
#  - /etc/letsencrypt/live/localhost/fullchain.pem
#  - /etc/letsencrypt/live/localhost/privkey.pem

# TLS configuration
define_macro:
  'TLS_CIPHERS': "HIGH:!aNULL:!eNULL:!3DES:@STRENGTH"
  'TLS_OPTIONS':
    - "no_sslv3"
    - "no_tlsv1"
    - "no_tlsv1_1"
    - "cipher_server_preference"
    - "no_compression"
    # 'DH_FILE': "/path/to/dhparams.pem"
    # generated with: openssl dhparam -out dhparams.pem 2048

c2s_ciphers: 'TLS_CIPHERS'
s2s_ciphers: 'TLS_CIPHERS'
c2s_protocol_options: 'TLS_OPTIONS'
s2s_protocol_options: 'TLS_OPTIONS'
# c2s_dhfile: 'DH_FILE'
# s2s_dhfile: 'DH_FILE'

listen:
  -
    port: 5222
    ip: "::"
    module: ejabberd_c2s
    max_stanza_size: 262144
    shaper: c2s_shaper
    access: c2s
    starttls_required: true
    protocol_options: 'TLS_OPTIONS'
  -
    port: 5223
    ip: "::"
    module: ejabberd_c2s
    max_stanza_size: 262144
    shaper: c2s_shaper
    access: c2s
    tls: true
    protocol_options: 'TLS_OPTIONS'
  -
    port: 5269
    ip: "::"
    module: ejabberd_s2s_in
    max_stanza_size: 524288
  -
    port: 5443
    ip: "::"
    module: ejabberd_http
    tls: true
    protocol_options: 'TLS_OPTIONS'
    request_handlers:
      /api: mod_http_api
      /bosh: mod_bosh
      ## /captcha: ejabberd_captcha
      ## /upload: mod_http_upload
      /ws: ejabberd_http_ws
  -
    port: 5280
    ip: "::"
    module: ejabberd_http
    tls: true
    protocol_options: 'TLS_OPTIONS'
    request_handlers:
      /admin: ejabberd_web_admin
      /.well-known/acme-challenge: ejabberd_acme
  -
    port: 3478
    ip: "::"
    transport: udp
    module: ejabberd_stun
    use_turn: true
    ## The server's public IPv4 address:
    # turn_ipv4_address: "203.0.113.3"
    ## The server's public IPv6 address:
    # turn_ipv6_address: "2001:db8::3"
  -
    port: 1883
    ip: "::"
    module: mod_mqtt
    backlog: 1000


## Disabling digest-md5 SASL authentication. digest-md5 requires plain-text
## password storage (see auth_password_format option).
disable_sasl_mechanisms:
  - "digest-md5"
  - "X-OAUTH2"

s2s_use_starttls: required

## Store the plain passwords or hashed for SCRAM:
auth_password_format: scram

## Full path to a script that generates the image.
## captcha_cmd: "/usr/share/ejabberd/captcha.sh"

acl:
  admin:
     user:
       - ""

  local:
    user_regexp: ""
  loopback:
    ip:
      - 127.0.0.0/8
      - ::1/128

access_rules:
  local:
    allow: local
  c2s:
    deny: blocked
    allow: all
  announce:
    allow: admin
  configure:
    allow: admin
  muc_create:
    allow: local
  pubsub_createnode:
    allow: local
  trusted_network:
    allow: loopback

api_permissions:
  "console commands":
    from:
      - ejabberd_ctl
    who: all
    what: "*"
  "admin access":
    who:
      access:
        allow:
          - acl: loopback
          - acl: admin
      oauth:
        scope: "ejabberd:admin"
        access:
          allow:
            - acl: loopback
            - acl: admin
    what:
      - "*"
      - "!stop"
      - "!start"
  "public commands":
    who:
      ip: 127.0.0.1/8
    what:
      - status
      - connected_users_number

shaper:
  normal:
    rate: 3000
    burst_size: 20000
  fast: 200000

shaper_rules:
  max_user_sessions: 10
  max_user_offline_messages:
    5000: admin
    100: all
  c2s_shaper:
    none: admin
    normal: all
  s2s_shaper: fast

modules:
  mod_adhoc: {}
  mod_admin_extra: {}
  mod_announce:
    access: announce
  mod_avatar: {}
  mod_blocking: {}
  mod_bosh: {}
  mod_caps: {}
  mod_carboncopy: {}
  mod_client_state: {}
  mod_configure: {}
  ## mod_delegation: {}   # for xep0356
  mod_disco: {}
  mod_fail2ban: {}
  mod_http_api: {}
  ## mod_http_upload:
  ##   put_url: https://@HOST@:5443/upload
  ##   custom_headers:
  ##     "Access-Control-Allow-Origin": "https://@HOST@"
  ##     "Access-Control-Allow-Methods": "GET,HEAD,PUT,OPTIONS"
  ##     "Access-Control-Allow-Headers": "Content-Type"
  mod_last: {}
  ## mod_mam:
  ##   ## Mnesia is limited to 2GB, better to use an SQL backend
  ##   ## For small servers SQLite is a good fit and is very easy
  ##   ## to configure. Uncomment this when you have SQL configured:
  ##   ## db_type: sql
  ##   assume_mam_usage: true
  ##   default: always
  mod_mqtt: {}
  mod_muc:
    access:
      - allow
    access_admin:
      - allow: admin
    access_create: muc_create
    access_persistent: muc_create
    access_mam:
      - allow
    default_room_options:
      mam: true
  mod_muc_admin: {}
  mod_offline:
    access_max_user_messages: max_user_offline_messages
  mod_ping: {}
  mod_pres_counter:
    count: 5
    interval: 60
  mod_privacy: {}
  mod_private: {}
  ## mod_proxy65:
  ##   access: local
  ##   max_connections: 5
  mod_pubsub:
    access_createnode: pubsub_createnode
    plugins:
      - flat
      - pep
    force_node_config:
      "eu.siacs.conversations.axolotl.*":
        access_model: open
      ## Avoid buggy clients to make their bookmarks public
      storage:bookmarks:
        access_model: whitelist
  mod_push: {}
  mod_push_keepalive: {}
  ## mod_register:
  ##   ## Only accept registration requests from the "trusted"
  ##   ## network (see access_rules section above).
  ##   ## Think twice before enabling registration from any
  ##   ## address. See the Jabber SPAM Manifesto for details:
  ##   ## https://github.com/ge0rg/jabber-spam-fighting-manifesto
  ##   ip_access: trusted_network
  mod_roster:
    versioning: true
  mod_s2s_dialback: {}
  mod_shared_roster: {}
  mod_sic: {}
  mod_stream_mgmt:
    resend_on_timeout: if_offline
  mod_stun_disco: {}
  mod_vcard:
    search: false
  mod_vcard_xupdate: {}
  mod_version: {}

### Local Variables:
### mode: yaml
### End:
### vim: set filetype=yaml tabstop=8

draft for community.network.bigmon_chain bug report

summary


module community.network.bigmon_chain fails at bigmon_chain.py, line 86 with error TypeError: 'NoneType' object is not subscriptable

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

steps to reproduce


  1. use example playbook, example.yaml and change the hosts field from example_server to your ejabberd server
---
- name: Test Ansible Compiler for community.network.bigmon_chain
  hosts: localhost
  gather_facts: false

  vars:
    access_token: "<access token>"
    controller: "10.1.1.1"
    name: "my_chain"
    state: present
    validate_certs: false

  tasks:
    - name: Test community.network.bigmon_chain module
      community.network.bigmon_chain:
        access_token: "{{ access_token }}"
        controller: "{{ controller }}"
        name: "{{ name }}"
        state: "{{ state }}"
        validate_certs: "{{ validate_certs }}"
  1. run as: ansible-playbook -i hosts.ini example.yaml

  2. results:

    • expected output - service chain created
[WARNING]: Found variable using reserved name: name
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.network.bigmon_chain/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.network.bigmon_chain/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.network.bigmon_chain/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.network.bigmon_chain/hosts.ini as it did not pass its verify_file() method
Parsed /data/john/projects/cf/data/module_yaml/20230706-083357/base/community.network.bigmon_chain/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: alt.yaml *************************************************************
1 plays in alt.yaml

PLAY [Test Ansible Compiler for community.network.bigmon_chain] ****************

TASK [Test community.network.bigmon_chain module] ******************************
task path: /data/john/projects/cf/data/module_yaml/20230706-083357/base/community.network.bigmon_chain/alt.yaml:14
<127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: john
<127.0.0.1> EXEC /bin/sh -c 'echo ~john && sleep 0'
<127.0.0.1> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo /home/john/.ansible/tmp `"&& mkdir "` echo /home/john/.ansible/tmp/ansible-tmp-1689303398.9984987-2872610-147555249331620 `" && echo ansible-tmp-1689303398.9984987-2872610-147555249331620="` echo /home/john/.ansible/tmp/ansible-tmp-1689303398.9984987-2872610-147555249331620 `" ) && sleep 0'
Using module file /data/john/projects/cf/env/lib/python3.10/site-packages/ansible_collections/community/network/plugins/modules/bigmon_chain.py
<127.0.0.1> PUT /home/john/.ansible/tmp/ansible-local-287260694lnrxjf/tmp558cugzs TO /home/john/.ansible/tmp/ansible-tmp-1689303398.9984987-2872610-147555249331620/AnsiballZ_bigmon_chain.py
<127.0.0.1> EXEC /bin/sh -c 'chmod u+x /home/john/.ansible/tmp/ansible-tmp-1689303398.9984987-2872610-147555249331620/ /home/john/.ansible/tmp/ansible-tmp-1689303398.9984987-2872610-147555249331620/AnsiballZ_bigmon_chain.py && sleep 0'
<127.0.0.1> EXEC /bin/sh -c '/data/john/projects/cf/env/bin/python /home/john/.ansible/tmp/ansible-tmp-1689303398.9984987-2872610-147555249331620/AnsiballZ_bigmon_chain.py && sleep 0'
<127.0.0.1> EXEC /bin/sh -c 'rm -f -r /home/john/.ansible/tmp/ansible-tmp-1689303398.9984987-2872610-147555249331620/ > /dev/null 2>&1 && sleep 0'
The full traceback is:
Traceback (most recent call last):
  File "/tmp/ansible_community.network.bigmon_chain_payload_t1n5si0i/ansible_community.network.bigmon_chain_payload.zip/ansible_collections/community/network/plugins/modules/bigmon_chain.py", line 126, in main
  File "/tmp/ansible_community.network.bigmon_chain_payload_t1n5si0i/ansible_community.network.bigmon_chain_payload.zip/ansible_collections/community/network/plugins/modules/bigmon_chain.py", line 86, in chain
TypeError: 'NoneType' object is not subscriptable
fatal: [localhost]: FAILED! => {
    "changed": false,
    "invocation": {
        "module_args": {
            "access_token": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
            "controller": "10.1.1.1",
            "name": "my_chain",
            "state": "present",
            "validate_certs": false
        }
    },
    "msg": "'NoneType' object is not subscriptable"
}

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

@akondrahman I know this is a lot so let me know if you have time to discuss this before I submit to the ansible bug reports or not.

@jmsalvador2395

Please go ahead with output for steps to reproduce when ejabberd IS NOT installed and community.network.bigmon_chain. For the first one the module should report 'install user first' or sth. like that.