Playbook #1

/root/kubeinit/ci/builds/6mbKNrxD/0/kubeinit/kubeinit/kubeinit-aux/kubeinit/playbook.yml

Report Status CLI Date Duration Controller User Versions Hosts Plays Tasks Results Files Records
26 Oct 2023 19:36:23 +0000 00:45:02.10 nyctea root Ansible 2.15.2 ara 1.6.1 (client), 1.6.1 (server) Python 3.11.4 8 9 1048 1048 53 1

Task result details

Field Value
changed
True
cmd
yum install -y jq
# Make sure crio binary is reachable
ln -s /usr/bin/crio /usr/local/bin/crio
tmp=$(mktemp)
crioconf=$(ls /etc/cni/net.d/87-crio-bridge* | xargs realpath)
jq '.plugins[0].ipam.ranges[0][0].subnet = "10.244.0.0/16"' "$crioconf" > "$tmp" && mv -f "$tmp" "$crioconf"
# jq '.type = "flannel"' /etc/cni/net.d/87-crio-bridge.conf > "$tmp" && mv -f "$tmp" /etc/cni/net.d/87-crio-bridge.conf
# rm -rf /etc/cni/net.d/87-crio-bridge.conf
# echo '{"name": "crio","type": "flannel"}' > /etc/cni/net.d/10-crio.conf
cp /etc/crio/crio.conf /etc/crio/crio.conf.backup
sed -i s/^.*default_runtime\ =\ .*$/default_runtime\ =\ \"crun\"/g /etc/crio/crio.conf

# There is no example config for crun anymore
#sed -i "s/^\#\[crio\.runtime\.runtimes\.crun.*\]/[crio.runtime.runtimes.crun]/g" /etc/crio/crio.conf
cat << EOF >> /etc/crio/crio.conf
[crio.runtime.runtimes.crun]
runtime_path = "/usr/bin/crun"
runtime_type = "oci"
runtime_root = "/run/crun"
EOF
delta
0:00:00.742628
end
2023-10-26 20:01:48.917500
invocation
{
    "module_args": {
        "_raw_params": "yum install -y jq\n# Make sure crio binary is reachable\nln -s /usr/bin/crio /usr/local/bin/crio\ntmp=$(mktemp)\ncrioconf=$(ls /etc/cni/net.d/87-crio-bridge* | xargs realpath)\njq '.plugins[0].ipam.ranges[0][0].subnet = \"10.244.0.0/16\"' \"$crioconf\" > \"$tmp\" && mv -f \"$tmp\" \"$crioconf\"\n# jq '.type = \"flannel\"' /etc/cni/net.d/87-crio-bridge.conf > \"$tmp\" && mv -f \"$tmp\" /etc/cni/net.d/87-crio-bridge.conf\n# rm -rf /etc/cni/net.d/87-crio-bridge.conf\n# echo '{\"name\": \"crio\",\"type\": \"flannel\"}' > /etc/cni/net.d/10-crio.conf\ncp /etc/crio/crio.conf /etc/crio/crio.conf.backup\nsed -i s/^.*default_runtime\\ =\\ .*$/default_runtime\\ =\\ \\\"crun\\\"/g /etc/crio/crio.conf\n\n# There is no example config for crun anymore\n#sed -i \"s/^\\#\\[crio\\.runtime\\.runtimes\\.crun.*\\]/[crio.runtime.runtimes.crun]/g\" /etc/crio/crio.conf\ncat << EOF >> /etc/crio/crio.conf\n[crio.runtime.runtimes.crun]\nruntime_path = \"/usr/bin/crun\"\nruntime_type = \"oci\"\nruntime_root = \"/run/crun\"\nEOF\n",
        "_uses_shell": true,
        "argv": null,
        "chdir": null,
        "creates": null,
        "executable": "/bin/bash",
        "removes": null,
        "stdin": null,
        "stdin_add_newline": true,
        "strip_empty_ends": true
    }
}
msg

rc
0
start
2023-10-26 20:01:48.174872
stderr

stderr_lines
[]
stdout
Last metadata expiration check: 0:00:15 ago on Thu 26 Oct 2023 08:01:33 PM UTC.
Package jq-1.6-15.el9.x86_64 is already installed.
Dependencies resolved.
Nothing to do.
Complete!
stdout_lines
[
    "Last metadata expiration check: 0:00:15 ago on Thu 26 Oct 2023 08:01:33 PM UTC.",
    "Package jq-1.6-15.el9.x86_64 is already installed.",
    "Dependencies resolved.",
    "Nothing to do.",
    "Complete!"
]