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 centos 9 cloud image suitable for Zuul] ************************** TASK [Gathering Facts] ********************************************************* ok: [localhost] TASK [discover-centos : Fail when release is not set] ************************** skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [discover-centos : Fail when composes is set to Centos 8 stream] ********** skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [discover-centos : tempfile] ********************************************** changed: [localhost] => {"changed": true, "gid": 0, "group": "root", "mode": "0600", "owner": "root", "path": "/tmp/ansible.n6ce97hc", "size": 0, "state": "file", "uid": 0} TASK [discover-centos : file] ************************************************** changed: [localhost] => {"changed": true, "path": "/tmp/ansible.n6ce97hc", "state": "absent"} TASK [discover-centos : Set proper url - stable] ******************************* ok: [localhost] => {"ansible_facts": {"mirror_url": "https://cloud.centos.org/centos/9-stream/x86_64/images"}, "changed": false} TASK [discover-centos : Set proper url - composes] ***************************** skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [discover-centos : Fetch publication page] ******************************** changed: [localhost] => {"changed": true, "checksum_dest": null, "checksum_src": "20c2f02f2794c2fe8d3676a7aed96d8574a83248", "dest": "/tmp/ansible.n6ce97hc", "elapsed": 1, "gid": 0, "group": "root", "md5sum": "f8f8c8456cb9bbe3ab67a67c99429201", "mode": "0644", "msg": "OK (unknown bytes)", "owner": "root", "size": 151014, "src": "/root/.ansible/tmp/ansible-tmp-1775079963.0404534-1055-19294697759710/tmpaf1apo4x", "state": "file", "status_code": 200, "uid": 0, "url": "https://cloud.centos.org/centos/9-stream/x86_64/images"} TASK [discover-centos : Find specified centos image version] ******************* skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [discover-centos : Find centos-9-stream qcow] ***************************** [WARNING]: Consider using the replace, lineinfile or template module rather than running 'sed'. If you need to use command because replace, lineinfile or template 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": "sed -n \"/qcow2/ s/.*\\(CentOS-Stream-GenericCloud-9-.*\\)<\\/a>.*/\\1/p\" /tmp/ansible.n6ce97hc | grep -v 'latest' | sort | grep -vEi 'md5sum|sha1sum|sha256sum' | tail -n1\n", "delta": "0:00:00.015087", "end": "2026-04-01 21:46:05.102548", "rc": 0, "start": "2026-04-01 21:46:05.087461", "stderr": "", "stderr_lines": [], "stdout": "CentOS-Stream-GenericCloud-9-20260331.0.x86_64.qcow2", "stdout_lines": ["CentOS-Stream-GenericCloud-9-20260331.0.x86_64.qcow2"]} TASK [discover-centos : Find checksum file url] ******************************** changed: [localhost] => {"changed": true, "cmd": "sed -n \"/SHA256SUM/ s/.*\\(CentOS-Stream-GenericCloud-9-20260331.0.x86_64.qcow2.SHA256SUM\\)<\\/a>.*/\\1/p\" /tmp/ansible.n6ce97hc\n", "delta": "0:00:00.011337", "end": "2026-04-01 21:46:05.342876", "rc": 0, "start": "2026-04-01 21:46:05.331539", "stderr": "", "stderr_lines": [], "stdout": "CentOS-Stream-GenericCloud-9-20260331.0.x86_64.qcow2.SHA256SUM", "stdout_lines": ["CentOS-Stream-GenericCloud-9-20260331.0.x86_64.qcow2.SHA256SUM"]} TASK [discover-centos : set_fact] ********************************************** ok: [localhost] => {"ansible_facts": {"checksums_url": "https://cloud.centos.org/centos/9-stream/x86_64/images/CentOS-Stream-GenericCloud-9-20260331.0.x86_64.qcow2.SHA256SUM"}, "changed": false} TASK [discover-centos : file] ************************************************** changed: [localhost] => {"changed": true, "path": "/tmp/ansible.n6ce97hc", "state": "absent"} TASK [discover-centos : Fetch checksum file] *********************************** changed: [localhost] => {"changed": true, "checksum_dest": null, "checksum_src": "f0474a908a8f5f6352a10000381a5b115c4f273b", "dest": "/tmp/ansible.n6ce97hc", "elapsed": 0, "gid": 0, "group": "root", "md5sum": "93c4aa31f6c50dce9b3338109dd8e71f", "mode": "0644", "msg": "OK (202 bytes)", "owner": "root", "size": 202, "src": "/root/.ansible/tmp/ansible-tmp-1775079965.6644607-1133-10942795662891/tmpge_b1fwp", "state": "file", "status_code": 200, "uid": 0, "url": "https://cloud.centos.org/centos/9-stream/x86_64/images/CentOS-Stream-GenericCloud-9-20260331.0.x86_64.qcow2.SHA256SUM"} TASK [discover-centos : Find checksum] ***************************************** changed: [localhost] => {"changed": true, "cmd": "tail -n1 /tmp/ansible.n6ce97hc | awk '{print $4}'\n", "delta": "0:00:00.011871", "end": "2026-04-01 21:46:06.618488", "rc": 0, "start": "2026-04-01 21:46:06.606617", "stderr": "", "stderr_lines": [], "stdout": "a69e8c84ae21af5743b96b23e66760a6ab15f8814b6b6fec6840e4b6e07933c9", "stdout_lines": ["a69e8c84ae21af5743b96b23e66760a6ab15f8814b6b6fec6840e4b6e07933c9"]} TASK [discover-centos : set_fact] ********************************************** ok: [localhost] => {"ansible_facts": {"image": "CentOS-Stream-GenericCloud-9-20260331.0.x86_64.qcow2", "image_checksum": "sha256:a69e8c84ae21af5743b96b23e66760a6ab15f8814b6b6fec6840e4b6e07933c9", "image_url": "https://cloud.centos.org/centos/9-stream/x86_64/images/CentOS-Stream-GenericCloud-9-20260331.0.x86_64.qcow2"}, "changed": false} TASK [discover-centos : debug] ************************************************* ok: [localhost] => { "msg": "Discovered image name: CentOS-Stream-GenericCloud-9-20260331.0.x86_64.qcow2\nDiscovered image_url: https://cloud.centos.org/centos/9-stream/x86_64/images/CentOS-Stream-GenericCloud-9-20260331.0.x86_64.qcow2\nDiscovered image_checksum: sha256:a69e8c84ae21af5743b96b23e66760a6ab15f8814b6b6fec6840e4b6e07933c9\n" } 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-1775079968.2504284-1227-254729360827589/source"], "err": "", "out": "", "rc": 0}, "gid": 0, "group": "root", "handler": "TarArchive", "mode": "0755", "owner": "root", "size": 23, "src": "/root/.ansible/tmp/ansible-tmp-1775079968.2504284-1227-254729360827589/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 : assert] *********************************************************** ok: [localhost] => { "changed": false, "msg": "All assertions passed" } TASK [base : Set some runtime facts] ******************************************* ok: [localhost] => {"ansible_facts": {"image_cache_file": "/var/cache/nodepool/CentOS-Stream-GenericCloud-9-20260331.0.x86_64.qcow2", "image_tmp_dir": "/var/tmp/cloud-centos-9-stream-f333b8b24a5d41f49c161ce2247f9598"}, "changed": false} TASK [base : Make sure cache directory exist] ********************************** ok: [localhost] => {"changed": false, "gid": 1002, "group": "1002", "mode": "0755", "owner": "1002", "path": "/var/cache/nodepool", "size": 8192, "state": "directory", "uid": 1002} TASK [base : Delete previous image cache] ************************************** skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [base : Check if image is already downloaded] ***************************** ok: [localhost] => {"changed": false, "stat": {"exists": false}} TASK [base : Download if checksum doesn't match] ******************************* changed: [localhost] => {"changed": true, "checksum_dest": null, "checksum_src": "9423925a1123f3df8879c03365239ddc91c6ec06", "dest": "/var/cache/nodepool/CentOS-Stream-GenericCloud-9-20260331.0.x86_64.qcow2", "elapsed": 21, "gid": 0, "group": "root", "md5sum": "223e922c9676b056e42b879bd03c0ace", "mode": "0644", "msg": "OK (1893392896 bytes)", "owner": "root", "size": 1893392896, "src": "/root/.ansible/tmp/ansible-tmp-1775080004.3898447-1303-231066322443953/tmplbn7pvey", "state": "file", "status_code": 200, "uid": 0, "url": "https://cloud.centos.org/centos/9-stream/x86_64/images/CentOS-Stream-GenericCloud-9-20260331.0.x86_64.qcow2"} TASK [base : Extract the image if necessary] *********************************** ok: [localhost] => {"changed": false, "cmd": ["xz", "-k", "-d", "/var/cache/nodepool/CentOS-Stream-GenericCloud-9-20260331.0.x86_64.qcow2.xz"], "rc": 0, "stdout": "skipped, since /var/cache/nodepool/CentOS-Stream-GenericCloud-9-20260331.0.x86_64.qcow2 exists", "stdout_lines": ["skipped, since /var/cache/nodepool/CentOS-Stream-GenericCloud-9-20260331.0.x86_64.qcow2 exists"]} TASK [base : Run pre-update command if needed] ********************************* changed: [localhost] => {"changed": true, "cmd": ["virt-customize", "-m", "2048", "-a", "/var/cache/nodepool/CentOS-Stream-GenericCloud-9-20260331.0.x86_64.qcow2", "--run-command", "dnf -y install dnf-plugins-core && dnf config-manager --set-enabled crb --save"], "delta": "0:01:22.798463", "end": "2026-04-01 21:48:37.573943", "rc": 0, "start": "2026-04-01 21:47:14.775480", "stderr": "", "stderr_lines": [], "stdout": "[ 0.0] Examining the guest ...\n[ 13.5] Setting a random seed\n[ 13.5] Setting the machine ID in /etc/machine-id\n[ 13.5] Running: dnf -y install dnf-plugins-core && dnf config-manager --set-enabled crb --save\n[ 82.5] Finishing off", "stdout_lines": ["[ 0.0] Examining the guest ...", "[ 13.5] Setting a random seed", "[ 13.5] Setting the machine ID in /etc/machine-id", "[ 13.5] Running: dnf -y install dnf-plugins-core && dnf config-manager --set-enabled crb --save", "[ 82.5] Finishing off"]} TASK [base : Set custom kernel version] **************************************** skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [base : Exclude packages for being updated] ******************************* skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [base : Update the cache] ************************************************* changed: [localhost] => {"changed": true, "cmd": ["virt-customize", "-m", "2048", "-a", "/var/cache/nodepool/CentOS-Stream-GenericCloud-9-20260331.0.x86_64.qcow2", "--update"], "delta": "0:00:28.683658", "end": "2026-04-01 21:49:06.490979", "rc": 0, "start": "2026-04-01 21:48:37.807321", "stderr": "", "stderr_lines": [], "stdout": "[ 0.0] Examining the guest ...\n[ 12.0] Setting a random seed\n[ 12.0] Updating packages\n[ 28.5] Finishing off", "stdout_lines": ["[ 0.0] Examining the guest ...", "[ 12.0] Setting a random seed", "[ 12.0] Updating packages", "[ 28.5] Finishing off"]} TASK [base : Create tmp directory] ********************************************* changed: [localhost] => {"changed": true, "gid": 0, "group": "root", "mode": "0755", "owner": "root", "path": "/var/tmp/cloud-centos-9-stream-f333b8b24a5d41f49c161ce2247f9598", "size": 6, "state": "directory", "uid": 0} TASK [base : Set filename copy fact] ******************************************* ok: [localhost] => {"ansible_facts": {"image_file": "/var/tmp/cloud-centos-9-stream-f333b8b24a5d41f49c161ce2247f9598/CentOS-Stream-GenericCloud-9-20260331.0.x86_64.qcow2"}, "changed": false} TASK [base : Copy the image] *************************************************** changed: [localhost] => {"changed": true, "checksum": "51c944b47a308edfc9c88f040f493675c0500cee", "dest": "/var/tmp/cloud-centos-9-stream-f333b8b24a5d41f49c161ce2247f9598/CentOS-Stream-GenericCloud-9-20260331.0.x86_64.qcow2", "gid": 0, "group": "root", "md5sum": "cfd4171078561885a632c55c845f3aa1", "mode": "0644", "owner": "root", "size": 1919549440, "src": "/var/cache/nodepool/CentOS-Stream-GenericCloud-9-20260331.0.x86_64.qcow2", "state": "file", "uid": 0} TASK [Install base package and setup SELINUX] ********************************** ok: [localhost] => {"ansible_facts": {"virt_customize_cmd": ["virt-customize -m 2048 -a /var/tmp/cloud-centos-9-stream-f333b8b24a5d41f49c161ce2247f9598/CentOS-Stream-GenericCloud-9-20260331.0.x86_64.qcow2", "--selinux-relabel", "--install 'traceroute,iproute,git,rsync'", "--run-command 'sed -e s/^SELINUX=.*/SELINUX=enforcing/ -i /etc/selinux/config'"]}, "changed": false} TASK [sshd-config : Prepare sshd_config file] ********************************** changed: [localhost] => {"changed": true, "checksum": "426f750873a82338136ef9ff497829722a2a035c", "dest": "/var/tmp/cloud-centos-9-stream-f333b8b24a5d41f49c161ce2247f9598/sshd_config", "gid": 0, "group": "root", "md5sum": "0f47734e2af65faf089c7bb0a53ff448", "mode": "0644", "owner": "root", "size": 907, "src": "/root/.ansible/tmp/ansible-tmp-1775080156.2141402-1472-264635174685227/source", "state": "file", "uid": 0} TASK [sshd-config : set_fact] ************************************************** ok: [localhost] => {"ansible_facts": {"cmd": ["--copy-in '/var/tmp/cloud-centos-9-stream-f333b8b24a5d41f49c161ce2247f9598/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/cloud-centos-9-stream-f333b8b24a5d41f49c161ce2247f9598/CentOS-Stream-GenericCloud-9-20260331.0.x86_64.qcow2", "--selinux-relabel", "--install 'traceroute,iproute,git,rsync'", "--run-command 'sed -e s/^SELINUX=.*/SELINUX=enforcing/ -i /etc/selinux/config'", "--copy-in '/var/tmp/cloud-centos-9-stream-f333b8b24a5d41f49c161ce2247f9598/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/cloud-centos-9-stream-f333b8b24a5d41f49c161ce2247f9598/zuul", "gid": 0, "group": "root", "md5sum": "4dca5fc5ab85dbdfff30d6dde7c49c65", "mode": "0644", "owner": "root", "size": 87, "src": "/root/.ansible/tmp/ansible-tmp-1775080156.8936853-1503-241306831855509/source", "state": "file", "uid": 0} TASK [zuul-user : Prepare the authorized_keys file] **************************** changed: [localhost] => {"changed": true, "checksum": "8a762e403cc4ed4e8498b801fcf57c967505132e", "dest": "/var/tmp/cloud-centos-9-stream-f333b8b24a5d41f49c161ce2247f9598/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] **************************************************** skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [zuul-user : set_fact] **************************************************** skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [zuul-user : set_fact] **************************************************** ok: [localhost] => {"ansible_facts": {"cmd": ["--run-command 'adduser -m zuul-worker'", "--mkdir '/home/zuul-worker/.ssh'", "--chmod '0700:/home/zuul-worker/.ssh'", "--copy-in '/var/tmp/cloud-centos-9-stream-f333b8b24a5d41f49c161ce2247f9598/authorized_keys:/home/zuul-worker/.ssh/'", "--chmod '0600:/home/zuul-worker/.ssh/authorized_keys'", "--run-command 'chown -R zuul-worker:zuul-worker /home/zuul-worker/.ssh/'", "--copy-in '/var/tmp/cloud-centos-9-stream-f333b8b24a5d41f49c161ce2247f9598/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-worker && chcon -R -h system_u:object_r:ssh_home_t:s0 /home/zuul-worker/.ssh'"]}, "changed": false} TASK [zuul-user : set_fact] **************************************************** ok: [localhost] => {"ansible_facts": {"virt_customize_cmd": ["virt-customize -m 2048 -a /var/tmp/cloud-centos-9-stream-f333b8b24a5d41f49c161ce2247f9598/CentOS-Stream-GenericCloud-9-20260331.0.x86_64.qcow2", "--selinux-relabel", "--install 'traceroute,iproute,git,rsync'", "--run-command 'sed -e s/^SELINUX=.*/SELINUX=enforcing/ -i /etc/selinux/config'", "--copy-in '/var/tmp/cloud-centos-9-stream-f333b8b24a5d41f49c161ce2247f9598/sshd_config:/etc/ssh/'", "--chmod '0600:/etc/ssh/sshd_config'", "--run-command 'adduser -m zuul-worker'", "--mkdir '/home/zuul-worker/.ssh'", "--chmod '0700:/home/zuul-worker/.ssh'", "--copy-in '/var/tmp/cloud-centos-9-stream-f333b8b24a5d41f49c161ce2247f9598/authorized_keys:/home/zuul-worker/.ssh/'", "--chmod '0600:/home/zuul-worker/.ssh/authorized_keys'", "--run-command 'chown -R zuul-worker:zuul-worker /home/zuul-worker/.ssh/'", "--copy-in '/var/tmp/cloud-centos-9-stream-f333b8b24a5d41f49c161ce2247f9598/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-worker && chcon -R -h system_u:object_r:ssh_home_t:s0 /home/zuul-worker/.ssh'"]}, "changed": false} TASK [base-install-packages : set_fact] **************************************** ok: [localhost] => {"ansible_facts": {"cmd": ["--install 'traceroute,iproute,git,rsync,pigz,wget,unzip,redhat-rpm-config,rpm-build,rpm-sign,rpmlint,createrepo,gnupg2,expect,hostname,gcc,gcc-c++,make,patch,tar,time,python3,python3-PyYAML,python3-devel,python3-libselinux,python3-netifaces,python3-six,libffi-devel,libxml2-devel,libxslt-devel,openldap-devel,openssl-devel,python-devel,readline-devel,ruby-devel,systemd-devel,zlib-devel,iptables-nft,iptables-nft-services'"]}, "changed": false} TASK [base-install-packages : set_fact] **************************************** ok: [localhost] => {"ansible_facts": {"virt_customize_cmd": ["virt-customize -m 2048 -a /var/tmp/cloud-centos-9-stream-f333b8b24a5d41f49c161ce2247f9598/CentOS-Stream-GenericCloud-9-20260331.0.x86_64.qcow2", "--selinux-relabel", "--install 'traceroute,iproute,git,rsync'", "--run-command 'sed -e s/^SELINUX=.*/SELINUX=enforcing/ -i /etc/selinux/config'", "--copy-in '/var/tmp/cloud-centos-9-stream-f333b8b24a5d41f49c161ce2247f9598/sshd_config:/etc/ssh/'", "--chmod '0600:/etc/ssh/sshd_config'", "--run-command 'adduser -m zuul-worker'", "--mkdir '/home/zuul-worker/.ssh'", "--chmod '0700:/home/zuul-worker/.ssh'", "--copy-in '/var/tmp/cloud-centos-9-stream-f333b8b24a5d41f49c161ce2247f9598/authorized_keys:/home/zuul-worker/.ssh/'", "--chmod '0600:/home/zuul-worker/.ssh/authorized_keys'", "--run-command 'chown -R zuul-worker:zuul-worker /home/zuul-worker/.ssh/'", "--copy-in '/var/tmp/cloud-centos-9-stream-f333b8b24a5d41f49c161ce2247f9598/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-worker && chcon -R -h system_u:object_r:ssh_home_t:s0 /home/zuul-worker/.ssh'", "--install 'traceroute,iproute,git,rsync,pigz,wget,unzip,redhat-rpm-config,rpm-build,rpm-sign,rpmlint,createrepo,gnupg2,expect,hostname,gcc,gcc-c++,make,patch,tar,time,python3,python3-PyYAML,python3-devel,python3-libselinux,python3-netifaces,python3-six,libffi-devel,libxml2-devel,libxslt-devel,openldap-devel,openssl-devel,python-devel,readline-devel,ruby-devel,systemd-devel,zlib-devel,iptables-nft,iptables-nft-services'"]}, "changed": false} TASK [network-config : set_fact] *********************************************** skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [network-config : set_fact] *********************************************** ok: [localhost] => {"ansible_facts": {"network_command": ["--install iptables", "--run-command 'iptables -I INPUT -p tcp -m state --state NEW -m tcp --dport 19885 -j ACCEPT'", "--run-command 'iptables -I INPUT -p tcp -m tcp --dport 22 -j ACCEPT'", "--run-command 'iptables-save > /etc/sysconfig/iptables'", "--run-command 'systemctl enable iptables.service'"]}, "changed": false} TASK [network-config : set_fact] *********************************************** ok: [localhost] => {"ansible_facts": {"virt_customize_cmd": ["virt-customize -m 2048 -a /var/tmp/cloud-centos-9-stream-f333b8b24a5d41f49c161ce2247f9598/CentOS-Stream-GenericCloud-9-20260331.0.x86_64.qcow2", "--selinux-relabel", "--install 'traceroute,iproute,git,rsync'", "--run-command 'sed -e s/^SELINUX=.*/SELINUX=enforcing/ -i /etc/selinux/config'", "--copy-in '/var/tmp/cloud-centos-9-stream-f333b8b24a5d41f49c161ce2247f9598/sshd_config:/etc/ssh/'", "--chmod '0600:/etc/ssh/sshd_config'", "--run-command 'adduser -m zuul-worker'", "--mkdir '/home/zuul-worker/.ssh'", "--chmod '0700:/home/zuul-worker/.ssh'", "--copy-in '/var/tmp/cloud-centos-9-stream-f333b8b24a5d41f49c161ce2247f9598/authorized_keys:/home/zuul-worker/.ssh/'", "--chmod '0600:/home/zuul-worker/.ssh/authorized_keys'", "--run-command 'chown -R zuul-worker:zuul-worker /home/zuul-worker/.ssh/'", "--copy-in '/var/tmp/cloud-centos-9-stream-f333b8b24a5d41f49c161ce2247f9598/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-worker && chcon -R -h system_u:object_r:ssh_home_t:s0 /home/zuul-worker/.ssh'", "--install 'traceroute,iproute,git,rsync,pigz,wget,unzip,redhat-rpm-config,rpm-build,rpm-sign,rpmlint,createrepo,gnupg2,expect,hostname,gcc,gcc-c++,make,patch,tar,time,python3,python3-PyYAML,python3-devel,python3-libselinux,python3-netifaces,python3-six,libffi-devel,libxml2-devel,libxslt-devel,openldap-devel,openssl-devel,python-devel,readline-devel,ruby-devel,systemd-devel,zlib-devel,iptables-nft,iptables-nft-services'", "--install 'traceroute,iproute,git,rsync,pigz,wget,unzip,redhat-rpm-config,rpm-build,rpm-sign,rpmlint,createrepo,gnupg2,expect,hostname,gcc,gcc-c++,make,patch,tar,time,python3,python3-PyYAML,python3-devel,python3-libselinux,python3-netifaces,python3-six,libffi-devel,libxml2-devel,libxslt-devel,openldap-devel,openssl-devel,python-devel,readline-devel,ruby-devel,systemd-devel,zlib-devel,iptables-nft,iptables-nft-services'", "--install iptables", "--run-command 'iptables -I INPUT -p tcp -m state --state NEW -m tcp --dport 19885 -j ACCEPT'", "--run-command 'iptables -I INPUT -p tcp -m tcp --dport 22 -j ACCEPT'", "--run-command 'iptables-save > /etc/sysconfig/iptables'", "--run-command 'systemctl enable iptables.service'"]}, "changed": false} TASK [base-customize : debug] ************************************************** ok: [localhost] => { "msg": "Running: virt-customize -m 2048 -a /var/tmp/cloud-centos-9-stream-f333b8b24a5d41f49c161ce2247f9598/CentOS-Stream-GenericCloud-9-20260331.0.x86_64.qcow2 --selinux-relabel --install 'traceroute,iproute,git,rsync' --run-command 'sed -e s/^SELINUX=.*/SELINUX=enforcing/ -i /etc/selinux/config' --copy-in '/var/tmp/cloud-centos-9-stream-f333b8b24a5d41f49c161ce2247f9598/sshd_config:/etc/ssh/' --chmod '0600:/etc/ssh/sshd_config' --run-command 'adduser -m zuul-worker' --mkdir '/home/zuul-worker/.ssh' --chmod '0700:/home/zuul-worker/.ssh' --copy-in '/var/tmp/cloud-centos-9-stream-f333b8b24a5d41f49c161ce2247f9598/authorized_keys:/home/zuul-worker/.ssh/' --chmod '0600:/home/zuul-worker/.ssh/authorized_keys' --run-command 'chown -R zuul-worker:zuul-worker /home/zuul-worker/.ssh/' --copy-in '/var/tmp/cloud-centos-9-stream-f333b8b24a5d41f49c161ce2247f9598/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-worker && chcon -R -h system_u:object_r:ssh_home_t:s0 /home/zuul-worker/.ssh' --install 'traceroute,iproute,git,rsync,pigz,wget,unzip,redhat-rpm-config,rpm-build,rpm-sign,rpmlint,createrepo,gnupg2,expect,hostname,gcc,gcc-c++,make,patch,tar,time,python3,python3-PyYAML,python3-devel,python3-libselinux,python3-netifaces,python3-six,libffi-devel,libxml2-devel,libxslt-devel,openldap-devel,openssl-devel,python-devel,readline-devel,ruby-devel,systemd-devel,zlib-devel,iptables-nft,iptables-nft-services' --install 'traceroute,iproute,git,rsync,pigz,wget,unzip,redhat-rpm-config,rpm-build,rpm-sign,rpmlint,createrepo,gnupg2,expect,hostname,gcc,gcc-c++,make,patch,tar,time,python3,python3-PyYAML,python3-devel,python3-libselinux,python3-netifaces,python3-six,libffi-devel,libxml2-devel,libxslt-devel,openldap-devel,openssl-devel,python-devel,readline-devel,ruby-devel,systemd-devel,zlib-devel,iptables-nft,iptables-nft-services' --install iptables --run-command 'iptables -I INPUT -p tcp -m state --state NEW -m tcp --dport 19885 -j ACCEPT' --run-command 'iptables -I INPUT -p tcp -m tcp --dport 22 -j ACCEPT' --run-command 'iptables-save > /etc/sysconfig/iptables' --run-command 'systemctl enable iptables.service'" } TASK [base-customize : Run virt-customize] ************************************* changed: [localhost] => {"changed": true, "cmd": ["virt-customize", "-m", "2048", "-a", "/var/tmp/cloud-centos-9-stream-f333b8b24a5d41f49c161ce2247f9598/CentOS-Stream-GenericCloud-9-20260331.0.x86_64.qcow2", "--selinux-relabel", "--install", "traceroute,iproute,git,rsync", "--run-command", "sed -e s/^SELINUX=.*/SELINUX=enforcing/ -i /etc/selinux/config", "--copy-in", "/var/tmp/cloud-centos-9-stream-f333b8b24a5d41f49c161ce2247f9598/sshd_config:/etc/ssh/", "--chmod", "0600:/etc/ssh/sshd_config", "--run-command", "adduser -m zuul-worker", "--mkdir", "/home/zuul-worker/.ssh", "--chmod", "0700:/home/zuul-worker/.ssh", "--copy-in", "/var/tmp/cloud-centos-9-stream-f333b8b24a5d41f49c161ce2247f9598/authorized_keys:/home/zuul-worker/.ssh/", "--chmod", "0600:/home/zuul-worker/.ssh/authorized_keys", "--run-command", "chown -R zuul-worker:zuul-worker /home/zuul-worker/.ssh/", "--copy-in", "/var/tmp/cloud-centos-9-stream-f333b8b24a5d41f49c161ce2247f9598/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-worker && chcon -R -h system_u:object_r:ssh_home_t:s0 /home/zuul-worker/.ssh", "--install", "traceroute,iproute,git,rsync,pigz,wget,unzip,redhat-rpm-config,rpm-build,rpm-sign,rpmlint,createrepo,gnupg2,expect,hostname,gcc,gcc-c++,make,patch,tar,time,python3,python3-PyYAML,python3-devel,python3-libselinux,python3-netifaces,python3-six,libffi-devel,libxml2-devel,libxslt-devel,openldap-devel,openssl-devel,python-devel,readline-devel,ruby-devel,systemd-devel,zlib-devel,iptables-nft,iptables-nft-services", "--install", "traceroute,iproute,git,rsync,pigz,wget,unzip,redhat-rpm-config,rpm-build,rpm-sign,rpmlint,createrepo,gnupg2,expect,hostname,gcc,gcc-c++,make,patch,tar,time,python3,python3-PyYAML,python3-devel,python3-libselinux,python3-netifaces,python3-six,libffi-devel,libxml2-devel,libxslt-devel,openldap-devel,openssl-devel,python-devel,readline-devel,ruby-devel,systemd-devel,zlib-devel,iptables-nft,iptables-nft-services", "--install", "iptables", "--run-command", "iptables -I INPUT -p tcp -m state --state NEW -m tcp --dport 19885 -j ACCEPT", "--run-command", "iptables -I INPUT -p tcp -m tcp --dport 22 -j ACCEPT", "--run-command", "iptables-save > /etc/sysconfig/iptables", "--run-command", "systemctl enable iptables.service"], "delta": "0:02:51.889666", "end": "2026-04-01 21:52:09.837706", "rc": 0, "start": "2026-04-01 21:49:17.948040", "stderr": "", "stderr_lines": [], "stdout": "[ 0.0] Examining the guest ...\n[ 15.1] Setting a random seed\n[ 15.2] Installing packages: traceroute iproute git rsync\n[ 36.9] Running: sed -e s/^SELINUX=.*/SELINUX=enforcing/ -i /etc/selinux/config\n[ 37.0] Copying: /var/tmp/cloud-centos-9-stream-f333b8b24a5d41f49c161ce2247f9598/sshd_config to /etc/ssh/\n[ 37.0] Changing permissions of /etc/ssh/sshd_config to 0600\n[ 37.0] Running: adduser -m zuul-worker\n[ 37.3] Making directory: /home/zuul-worker/.ssh\n[ 37.3] Changing permissions of /home/zuul-worker/.ssh to 0700\n[ 37.3] Copying: /var/tmp/cloud-centos-9-stream-f333b8b24a5d41f49c161ce2247f9598/authorized_keys to /home/zuul-worker/.ssh/\n[ 37.3] Changing permissions of /home/zuul-worker/.ssh/authorized_keys to 0600\n[ 37.3] Running: chown -R zuul-worker:zuul-worker /home/zuul-worker/.ssh/\n[ 37.4] Copying: /var/tmp/cloud-centos-9-stream-f333b8b24a5d41f49c161ce2247f9598/zuul to /etc/sudoers.d/\n[ 37.4] Changing permissions of /etc/sudoers.d/zuul to 0440\n[ 37.4] Running: chcon -R -h system_u:object_r:user_home_t:s0 /home/zuul-worker && chcon -R -h system_u:object_r:ssh_home_t:s0 /home/zuul-worker/.ssh\n[ 37.5] Installing packages: traceroute iproute git rsync pigz wget unzip redhat-rpm-config rpm-build rpm-sign rpmlint createrepo gnupg2 expect hostname gcc gcc-c++ make patch tar time python3 python3-PyYAML python3-devel python3-libselinux python3-netifaces python3-six libffi-devel libxml2-devel libxslt-devel openldap-devel openssl-devel python-devel readline-devel ruby-devel systemd-devel zlib-devel iptables-nft iptables-nft-services\n[ 144.2] Installing packages: traceroute iproute git rsync pigz wget unzip redhat-rpm-config rpm-build rpm-sign rpmlint createrepo gnupg2 expect hostname gcc gcc-c++ make patch tar time python3 python3-PyYAML python3-devel python3-libselinux python3-netifaces python3-six libffi-devel libxml2-devel libxslt-devel openldap-devel openssl-devel python-devel readline-devel ruby-devel systemd-devel zlib-devel iptables-nft iptables-nft-services\n[ 145.2] Installing packages: iptables\n[ 146.0] Running: iptables -I INPUT -p tcp -m state --state NEW -m tcp --dport 19885 -j ACCEPT\n[ 146.2] Running: iptables -I INPUT -p tcp -m tcp --dport 22 -j ACCEPT\n[ 146.2] Running: iptables-save > /etc/sysconfig/iptables\n[ 146.3] Running: systemctl enable iptables.service\n[ 146.4] SELinux relabelling\n[ 171.5] Finishing off", "stdout_lines": ["[ 0.0] Examining the guest ...", "[ 15.1] Setting a random seed", "[ 15.2] Installing packages: traceroute iproute git rsync", "[ 36.9] Running: sed -e s/^SELINUX=.*/SELINUX=enforcing/ -i /etc/selinux/config", "[ 37.0] Copying: /var/tmp/cloud-centos-9-stream-f333b8b24a5d41f49c161ce2247f9598/sshd_config to /etc/ssh/", "[ 37.0] Changing permissions of /etc/ssh/sshd_config to 0600", "[ 37.0] Running: adduser -m zuul-worker", "[ 37.3] Making directory: /home/zuul-worker/.ssh", "[ 37.3] Changing permissions of /home/zuul-worker/.ssh to 0700", "[ 37.3] Copying: /var/tmp/cloud-centos-9-stream-f333b8b24a5d41f49c161ce2247f9598/authorized_keys to /home/zuul-worker/.ssh/", "[ 37.3] Changing permissions of /home/zuul-worker/.ssh/authorized_keys to 0600", "[ 37.3] Running: chown -R zuul-worker:zuul-worker /home/zuul-worker/.ssh/", "[ 37.4] Copying: /var/tmp/cloud-centos-9-stream-f333b8b24a5d41f49c161ce2247f9598/zuul to /etc/sudoers.d/", "[ 37.4] Changing permissions of /etc/sudoers.d/zuul to 0440", "[ 37.4] Running: chcon -R -h system_u:object_r:user_home_t:s0 /home/zuul-worker && chcon -R -h system_u:object_r:ssh_home_t:s0 /home/zuul-worker/.ssh", "[ 37.5] Installing packages: traceroute iproute git rsync pigz wget unzip redhat-rpm-config rpm-build rpm-sign rpmlint createrepo gnupg2 expect hostname gcc gcc-c++ make patch tar time python3 python3-PyYAML python3-devel python3-libselinux python3-netifaces python3-six libffi-devel libxml2-devel libxslt-devel openldap-devel openssl-devel python-devel readline-devel ruby-devel systemd-devel zlib-devel iptables-nft iptables-nft-services", "[ 144.2] Installing packages: traceroute iproute git rsync pigz wget unzip redhat-rpm-config rpm-build rpm-sign rpmlint createrepo gnupg2 expect hostname gcc gcc-c++ make patch tar time python3 python3-PyYAML python3-devel python3-libselinux python3-netifaces python3-six libffi-devel libxml2-devel libxslt-devel openldap-devel openssl-devel python-devel readline-devel ruby-devel systemd-devel zlib-devel iptables-nft iptables-nft-services", "[ 145.2] Installing packages: iptables", "[ 146.0] Running: iptables -I INPUT -p tcp -m state --state NEW -m tcp --dport 19885 -j ACCEPT", "[ 146.2] Running: iptables -I INPUT -p tcp -m tcp --dport 22 -j ACCEPT", "[ 146.2] Running: iptables-save > /etc/sysconfig/iptables", "[ 146.3] Running: systemctl enable iptables.service", "[ 146.4] SELinux relabelling", "[ 171.5] Finishing off"]} TASK [base-finalize : Create raw file] ***************************************** changed: [localhost] => {"changed": true, "cmd": ["qemu-img", "convert", "-O", "raw", "/var/tmp/cloud-centos-9-stream-f333b8b24a5d41f49c161ce2247f9598/CentOS-Stream-GenericCloud-9-20260331.0.x86_64.qcow2", "/var/lib/nodepool/dib/cloud-centos-9-stream-f333b8b24a5d41f49c161ce2247f9598.raw"], "delta": "0:00:08.174374", "end": "2026-04-01 21:52:18.236773", "rc": 0, "start": "2026-04-01 21:52:10.062399", "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/cloud-centos-9-stream-f333b8b24a5d41f49c161ce2247f9598", "state": "absent"} PLAY RECAP ********************************************************************* localhost : ok=47 changed=22 unreachable=0 failed=0 skipped=12 rescued=0 ignored=0 Running: sudo /usr/local/bin/ansible-playbook -v /etc/nodepool/virt_images/cloud-centos-9-stream.yaml -e image_output=/var/lib/nodepool/dib/cloud-centos-9-stream-f333b8b24a5d41f49c161ce2247f9598 -e raw_type=True Exit code: 0