No config file found; using defaults [WARNING]: No inventory was parsed, only implicit localhost is available [WARNING]: provided hosts list is empty, only localhost is available. Note that the implicit localhost does not match 'all' PLAY [Build a RHEL9.2 cloud image suitable for Zuul] *************************** TASK [Gathering Facts] ********************************************************* ok: [localhost] TASK [base-appliance : Set appliance_archive] ********************************** ok: [localhost] => {"ansible_facts": {"appliance_archive": "/tmp/appliance-1.54.0.tar.xz"}, "changed": false} TASK [base-appliance : Set appliance_path] ************************************* ok: [localhost] => {"ansible_facts": {"appliance_path": "/tmp//tmp/appliance-1.54.0"}, "changed": false} TASK [base-appliance : Remove existing appliance directory to avoid error: virt-customize: error: libguestfs error: cannot find any suitable libguestfs supermin] *** changed: [localhost] => {"changed": true, "path": "/tmp//tmp/appliance-1.54.0", "state": "absent"} TASK [base-appliance : Ensure appliance_path exists] *************************** changed: [localhost] => {"changed": true, "gid": 0, "group": "root", "mode": "0755", "owner": "root", "path": "/tmp//tmp/appliance-1.54.0", "size": 6, "state": "directory", "uid": 0} TASK [base-appliance : Download appliance] ************************************* ok: [localhost] => {"changed": false, "dest": "/tmp/appliance-1.54.0.tar.xz", "elapsed": 0, "gid": 0, "group": "root", "mode": "0644", "msg": "HTTP Error 304: Not Modified", "owner": "root", "size": 197794224, "state": "file", "uid": 0, "url": "https://download.libguestfs.org/binaries/appliance/appliance-1.54.0.tar.xz"} TASK [base-appliance : Unarchive appliance] ************************************ changed: [localhost] => {"changed": true, "dest": "/tmp//tmp/appliance-1.54.0", "extract_results": {"cmd": ["/bin/gtar", "--extract", "-C", "/tmp//tmp/appliance-1.54.0", "-f", "/root/.ansible/tmp/ansible-tmp-1774465264.7152069-99586-193620314490678/source"], "err": "", "out": "", "rc": 0}, "gid": 0, "group": "root", "handler": "TarArchive", "mode": "0755", "owner": "root", "size": 23, "src": "/root/.ansible/tmp/ansible-tmp-1774465264.7152069-99586-193620314490678/source", "state": "directory", "uid": 0} TASK [base-appliance : set_fact] *********************************************** ok: [localhost] => {"ansible_facts": {"virt_customize_env": {"LIBGUESTFS_BACKEND": "direct", "LIBGUESTFS_PATH": "/tmp//tmp/appliance-1.54.0/appliance"}}, "changed": false} TASK [base-local : Set image_tmp_dir] ****************************************** ok: [localhost] => {"ansible_facts": {"image_tmp_dir": "/var/tmp/rhel-guest-image-9.2-20230531.18.x86_64.qcow2"}, "changed": false} TASK [base-local : Copy the image] ********************************************* [WARNING]: Consider using the file module with state=directory rather than running 'mkdir'. If you need to use command because file is insufficient you can add 'warn: false' to this command task or set 'command_warnings=False' in ansible.cfg to get rid of this message. changed: [localhost] => {"changed": true, "cmd": "mkdir -p /var/tmp/rhel-guest-image-9.2-20230531.18.x86_64.qcow2\ncp /mnt/RHEL/rhel-guest-image-9.2-20230531.18.x86_64.qcow2 /var/tmp/rhel-guest-image-9.2-20230531.18.x86_64.qcow2/\n", "delta": "0:00:01.376707", "end": "2026-03-25 19:01:47.964192", "rc": 0, "start": "2026-03-25 19:01:46.587485", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [base-local : Set image_file] ********************************************* ok: [localhost] => {"ansible_facts": {"image_file": "/var/tmp/rhel-guest-image-9.2-20230531.18.x86_64.qcow2/rhel-guest-image-9.2-20230531.18.x86_64.qcow2"}, "changed": false} TASK [base-local : Set virt_customize_cmd] ************************************* ok: [localhost] => {"ansible_facts": {"virt_customize_cmd": ["virt-customize -m 2048 -a /var/tmp/rhel-guest-image-9.2-20230531.18.x86_64.qcow2/rhel-guest-image-9.2-20230531.18.x86_64.qcow2", "--selinux-relabel"]}, "changed": false} TASK [sshd-config : Prepare sshd_config file] ********************************** changed: [localhost] => {"changed": true, "checksum": "426f750873a82338136ef9ff497829722a2a035c", "dest": "/var/tmp/rhel-guest-image-9.2-20230531.18.x86_64.qcow2/sshd_config", "gid": 0, "group": "root", "md5sum": "0f47734e2af65faf089c7bb0a53ff448", "mode": "0644", "owner": "root", "size": 907, "src": "/root/.ansible/tmp/ansible-tmp-1774465308.210883-99648-200273653548330/source", "state": "file", "uid": 0} TASK [sshd-config : set_fact] ************************************************** ok: [localhost] => {"ansible_facts": {"cmd": ["--copy-in '/var/tmp/rhel-guest-image-9.2-20230531.18.x86_64.qcow2/sshd_config:/etc/ssh/'", "--chmod '0600:/etc/ssh/sshd_config'"]}, "changed": false} TASK [sshd-config : Generate ssh host keys] ************************************ skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [sshd-config : set_fact] ************************************************** ok: [localhost] => {"ansible_facts": {"virt_customize_cmd": ["virt-customize -m 2048 -a /var/tmp/rhel-guest-image-9.2-20230531.18.x86_64.qcow2/rhel-guest-image-9.2-20230531.18.x86_64.qcow2", "--selinux-relabel", "--copy-in '/var/tmp/rhel-guest-image-9.2-20230531.18.x86_64.qcow2/sshd_config:/etc/ssh/'", "--chmod '0600:/etc/ssh/sshd_config'"]}, "changed": false} TASK [zuul-user : Prepare the sudoers file] ************************************ changed: [localhost] => {"changed": true, "checksum": "bf0831556e9f0a8ed0d5520b424f992f590ea2e3", "dest": "/var/tmp/rhel-guest-image-9.2-20230531.18.x86_64.qcow2/zuul", "gid": 0, "group": "root", "md5sum": "4dca5fc5ab85dbdfff30d6dde7c49c65", "mode": "0644", "owner": "root", "size": 87, "src": "/root/.ansible/tmp/ansible-tmp-1774465309.0485783-99679-159465550809117/source", "state": "file", "uid": 0} TASK [zuul-user : Prepare the authorized_keys file] **************************** changed: [localhost] => {"changed": true, "checksum": "8a762e403cc4ed4e8498b801fcf57c967505132e", "dest": "/var/tmp/rhel-guest-image-9.2-20230531.18.x86_64.qcow2/authorized_keys", "gid": 0, "group": "root", "md5sum": "0df0a4d0f345163e88e6dd96d3cb5f35", "mode": "0644", "owner": "root", "size": 395, "src": "/var/lib/nodepool/.ssh/zuul_rsa.pub", "state": "file", "uid": 0} TASK [zuul-user : set_fact] **************************************************** ok: [localhost] => {"ansible_facts": {"cmd": ["--run-command 'if id zuul; then userdel -r -f zuul; fi'"]}, "changed": false} TASK [zuul-user : set_fact] **************************************************** ok: [localhost] => {"ansible_facts": {"virt_customize_cmd": ["virt-customize -m 2048 -a /var/tmp/rhel-guest-image-9.2-20230531.18.x86_64.qcow2/rhel-guest-image-9.2-20230531.18.x86_64.qcow2", "--selinux-relabel", "--copy-in '/var/tmp/rhel-guest-image-9.2-20230531.18.x86_64.qcow2/sshd_config:/etc/ssh/'", "--chmod '0600:/etc/ssh/sshd_config'", "--run-command 'if id zuul; then userdel -r -f zuul; fi'"]}, "changed": false} TASK [zuul-user : set_fact] **************************************************** ok: [localhost] => {"ansible_facts": {"cmd": ["--run-command 'adduser -m zuul'", "--mkdir '/home/zuul/.ssh'", "--chmod '0700:/home/zuul/.ssh'", "--copy-in '/var/tmp/rhel-guest-image-9.2-20230531.18.x86_64.qcow2/authorized_keys:/home/zuul/.ssh/'", "--chmod '0600:/home/zuul/.ssh/authorized_keys'", "--run-command 'chown -R zuul:zuul /home/zuul/.ssh/'", "--copy-in '/var/tmp/rhel-guest-image-9.2-20230531.18.x86_64.qcow2/zuul:/etc/sudoers.d/'", "--chmod '0440:/etc/sudoers.d/zuul'", "--run-command 'chcon -R -h system_u:object_r:user_home_t:s0 /home/zuul && chcon -R -h system_u:object_r:ssh_home_t:s0 /home/zuul/.ssh'"]}, "changed": false} TASK [zuul-user : set_fact] **************************************************** ok: [localhost] => {"ansible_facts": {"virt_customize_cmd": ["virt-customize -m 2048 -a /var/tmp/rhel-guest-image-9.2-20230531.18.x86_64.qcow2/rhel-guest-image-9.2-20230531.18.x86_64.qcow2", "--selinux-relabel", "--copy-in '/var/tmp/rhel-guest-image-9.2-20230531.18.x86_64.qcow2/sshd_config:/etc/ssh/'", "--chmod '0600:/etc/ssh/sshd_config'", "--run-command 'if id zuul; then userdel -r -f zuul; fi'", "--run-command 'adduser -m zuul'", "--mkdir '/home/zuul/.ssh'", "--chmod '0700:/home/zuul/.ssh'", "--copy-in '/var/tmp/rhel-guest-image-9.2-20230531.18.x86_64.qcow2/authorized_keys:/home/zuul/.ssh/'", "--chmod '0600:/home/zuul/.ssh/authorized_keys'", "--run-command 'chown -R zuul:zuul /home/zuul/.ssh/'", "--copy-in '/var/tmp/rhel-guest-image-9.2-20230531.18.x86_64.qcow2/zuul:/etc/sudoers.d/'", "--chmod '0440:/etc/sudoers.d/zuul'", "--run-command 'chcon -R -h system_u:object_r:user_home_t:s0 /home/zuul && chcon -R -h system_u:object_r:ssh_home_t:s0 /home/zuul/.ssh'"]}, "changed": false} TASK [Download the cirros cloud image] ***************************************** ok: [localhost] => {"changed": false, "checksum_dest": null, "checksum_src": null, "dest": "/var/cache/nodepool/cirros-0.5.2-x86_64-disk.img", "elapsed": 0, "gid": 0, "group": "root", "mode": "0644", "msg": "file already exists", "owner": "root", "size": 16300544, "state": "file", "uid": 0, "url": "http://download.cirros-cloud.net/0.5.2/cirros-0.5.2-x86_64-disk.img"} TASK [set_fact] **************************************************************** ok: [localhost] => {"ansible_facts": {"cmd": ["--mkdir '/opt/cache/files'", "--copy-in '/var/cache/nodepool/cirros-0.5.2-x86_64-disk.img:/opt/cache/files'", "--run-command 'chown -R zuul:zuul /opt/cache/files/'", "--run-command 'chmod -R a+rX /opt/cache/files/*'"]}, "changed": false} TASK [set_fact] **************************************************************** ok: [localhost] => {"ansible_facts": {"virt_customize_cmd": ["virt-customize -m 2048 -a /var/tmp/rhel-guest-image-9.2-20230531.18.x86_64.qcow2/rhel-guest-image-9.2-20230531.18.x86_64.qcow2", "--selinux-relabel", "--copy-in '/var/tmp/rhel-guest-image-9.2-20230531.18.x86_64.qcow2/sshd_config:/etc/ssh/'", "--chmod '0600:/etc/ssh/sshd_config'", "--run-command 'if id zuul; then userdel -r -f zuul; fi'", "--run-command 'adduser -m zuul'", "--mkdir '/home/zuul/.ssh'", "--chmod '0700:/home/zuul/.ssh'", "--copy-in '/var/tmp/rhel-guest-image-9.2-20230531.18.x86_64.qcow2/authorized_keys:/home/zuul/.ssh/'", "--chmod '0600:/home/zuul/.ssh/authorized_keys'", "--run-command 'chown -R zuul:zuul /home/zuul/.ssh/'", "--copy-in '/var/tmp/rhel-guest-image-9.2-20230531.18.x86_64.qcow2/zuul:/etc/sudoers.d/'", "--chmod '0440:/etc/sudoers.d/zuul'", "--run-command 'chcon -R -h system_u:object_r:user_home_t:s0 /home/zuul && chcon -R -h system_u:object_r:ssh_home_t:s0 /home/zuul/.ssh'", "--mkdir '/opt/cache/files'", "--copy-in '/var/cache/nodepool/cirros-0.5.2-x86_64-disk.img:/opt/cache/files'", "--run-command 'chown -R zuul:zuul /opt/cache/files/'", "--run-command 'chmod -R a+rX /opt/cache/files/*'"]}, "changed": false} TASK [base-customize : debug] ************************************************** ok: [localhost] => { "msg": "Running: virt-customize -m 2048 -a /var/tmp/rhel-guest-image-9.2-20230531.18.x86_64.qcow2/rhel-guest-image-9.2-20230531.18.x86_64.qcow2 --selinux-relabel --copy-in '/var/tmp/rhel-guest-image-9.2-20230531.18.x86_64.qcow2/sshd_config:/etc/ssh/' --chmod '0600:/etc/ssh/sshd_config' --run-command 'if id zuul; then userdel -r -f zuul; fi' --run-command 'adduser -m zuul' --mkdir '/home/zuul/.ssh' --chmod '0700:/home/zuul/.ssh' --copy-in '/var/tmp/rhel-guest-image-9.2-20230531.18.x86_64.qcow2/authorized_keys:/home/zuul/.ssh/' --chmod '0600:/home/zuul/.ssh/authorized_keys' --run-command 'chown -R zuul:zuul /home/zuul/.ssh/' --copy-in '/var/tmp/rhel-guest-image-9.2-20230531.18.x86_64.qcow2/zuul:/etc/sudoers.d/' --chmod '0440:/etc/sudoers.d/zuul' --run-command 'chcon -R -h system_u:object_r:user_home_t:s0 /home/zuul && chcon -R -h system_u:object_r:ssh_home_t:s0 /home/zuul/.ssh' --mkdir '/opt/cache/files' --copy-in '/var/cache/nodepool/cirros-0.5.2-x86_64-disk.img:/opt/cache/files' --run-command 'chown -R zuul:zuul /opt/cache/files/' --run-command 'chmod -R a+rX /opt/cache/files/*'" } TASK [base-customize : Run virt-customize] ************************************* changed: [localhost] => {"changed": true, "cmd": ["virt-customize", "-m", "2048", "-a", "/var/tmp/rhel-guest-image-9.2-20230531.18.x86_64.qcow2/rhel-guest-image-9.2-20230531.18.x86_64.qcow2", "--selinux-relabel", "--copy-in", "/var/tmp/rhel-guest-image-9.2-20230531.18.x86_64.qcow2/sshd_config:/etc/ssh/", "--chmod", "0600:/etc/ssh/sshd_config", "--run-command", "if id zuul; then userdel -r -f zuul; fi", "--run-command", "adduser -m zuul", "--mkdir", "/home/zuul/.ssh", "--chmod", "0700:/home/zuul/.ssh", "--copy-in", "/var/tmp/rhel-guest-image-9.2-20230531.18.x86_64.qcow2/authorized_keys:/home/zuul/.ssh/", "--chmod", "0600:/home/zuul/.ssh/authorized_keys", "--run-command", "chown -R zuul:zuul /home/zuul/.ssh/", "--copy-in", "/var/tmp/rhel-guest-image-9.2-20230531.18.x86_64.qcow2/zuul:/etc/sudoers.d/", "--chmod", "0440:/etc/sudoers.d/zuul", "--run-command", "chcon -R -h system_u:object_r:user_home_t:s0 /home/zuul && chcon -R -h system_u:object_r:ssh_home_t:s0 /home/zuul/.ssh", "--mkdir", "/opt/cache/files", "--copy-in", "/var/cache/nodepool/cirros-0.5.2-x86_64-disk.img:/opt/cache/files", "--run-command", "chown -R zuul:zuul /opt/cache/files/", "--run-command", "chmod -R a+rX /opt/cache/files/*"], "delta": "0:00:46.006299", "end": "2026-03-25 19:02:37.092557", "rc": 0, "start": "2026-03-25 19:01:51.086258", "stderr": "", "stderr_lines": [], "stdout": "[ 0.0] Examining the guest ...\n[ 17.9] Setting a random seed\n[ 18.0] Setting the machine ID in /etc/machine-id\n[ 18.0] Copying: /var/tmp/rhel-guest-image-9.2-20230531.18.x86_64.qcow2/sshd_config to /etc/ssh/\n[ 18.0] Changing permissions of /etc/ssh/sshd_config to 0600\n[ 18.0] Running: if id zuul; then userdel -r -f zuul; fi\n[ 18.5] Running: adduser -m zuul\n[ 20.2] Making directory: /home/zuul/.ssh\n[ 20.2] Changing permissions of /home/zuul/.ssh to 0700\n[ 20.2] Copying: /var/tmp/rhel-guest-image-9.2-20230531.18.x86_64.qcow2/authorized_keys to /home/zuul/.ssh/\n[ 20.2] Changing permissions of /home/zuul/.ssh/authorized_keys to 0600\n[ 20.2] Running: chown -R zuul:zuul /home/zuul/.ssh/\n[ 20.3] Copying: /var/tmp/rhel-guest-image-9.2-20230531.18.x86_64.qcow2/zuul to /etc/sudoers.d/\n[ 20.4] Changing permissions of /etc/sudoers.d/zuul to 0440\n[ 20.4] Running: chcon -R -h system_u:object_r:user_home_t:s0 /home/zuul && chcon -R -h system_u:object_r:ssh_home_t:s0 /home/zuul/.ssh\n[ 20.5] Making directory: /opt/cache/files\n[ 20.5] Copying: /var/cache/nodepool/cirros-0.5.2-x86_64-disk.img to /opt/cache/files\n[ 20.9] Running: chown -R zuul:zuul /opt/cache/files/\n[ 21.0] Running: chmod -R a+rX /opt/cache/files/*\n[ 21.0] SELinux relabelling\n[ 45.8] Finishing off", "stdout_lines": ["[ 0.0] Examining the guest ...", "[ 17.9] Setting a random seed", "[ 18.0] Setting the machine ID in /etc/machine-id", "[ 18.0] Copying: /var/tmp/rhel-guest-image-9.2-20230531.18.x86_64.qcow2/sshd_config to /etc/ssh/", "[ 18.0] Changing permissions of /etc/ssh/sshd_config to 0600", "[ 18.0] Running: if id zuul; then userdel -r -f zuul; fi", "[ 18.5] Running: adduser -m zuul", "[ 20.2] Making directory: /home/zuul/.ssh", "[ 20.2] Changing permissions of /home/zuul/.ssh to 0700", "[ 20.2] Copying: /var/tmp/rhel-guest-image-9.2-20230531.18.x86_64.qcow2/authorized_keys to /home/zuul/.ssh/", "[ 20.2] Changing permissions of /home/zuul/.ssh/authorized_keys to 0600", "[ 20.2] Running: chown -R zuul:zuul /home/zuul/.ssh/", "[ 20.3] Copying: /var/tmp/rhel-guest-image-9.2-20230531.18.x86_64.qcow2/zuul to /etc/sudoers.d/", "[ 20.4] Changing permissions of /etc/sudoers.d/zuul to 0440", "[ 20.4] Running: chcon -R -h system_u:object_r:user_home_t:s0 /home/zuul && chcon -R -h system_u:object_r:ssh_home_t:s0 /home/zuul/.ssh", "[ 20.5] Making directory: /opt/cache/files", "[ 20.5] Copying: /var/cache/nodepool/cirros-0.5.2-x86_64-disk.img to /opt/cache/files", "[ 20.9] Running: chown -R zuul:zuul /opt/cache/files/", "[ 21.0] Running: chmod -R a+rX /opt/cache/files/*", "[ 21.0] SELinux relabelling", "[ 45.8] Finishing off"]} TASK [base-finalize : Create raw file] ***************************************** changed: [localhost] => {"changed": true, "cmd": ["qemu-img", "convert", "-O", "raw", "/var/tmp/rhel-guest-image-9.2-20230531.18.x86_64.qcow2/rhel-guest-image-9.2-20230531.18.x86_64.qcow2", "/var/lib/nodepool/dib/cloud-rhel-9-2-2cc1f4e163fe450cbf6d788dda263885.raw"], "delta": "0:00:11.670911", "end": "2026-03-25 19:02:49.142423", "rc": 0, "start": "2026-03-25 19:02:37.471512", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [base-finalize : Create qcow file] **************************************** skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [base-cleanup : Remove tmp directory] ************************************* changed: [localhost] => {"changed": true, "path": "/var/tmp/rhel-guest-image-9.2-20230531.18.x86_64.qcow2", "state": "absent"} PLAY RECAP ********************************************************************* localhost : ok=28 changed=10 unreachable=0 failed=0 skipped=2 rescued=0 ignored=0 Running: sudo /usr/local/bin/ansible-playbook -v /etc/nodepool/virt_images/cloud-rhel-9-2.yaml -e image_output=/var/lib/nodepool/dib/cloud-rhel-9-2-2cc1f4e163fe450cbf6d788dda263885 -e raw_type=True Exit code: 0