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
29 Oct 2023 00:32:06 +0000 00:19:18.13 nyctea root Ansible 2.15.2 ara 1.6.1 (client), 1.6.1 (server) Python 3.11.4 6 7 887 887 53 1

Task result details

Field Value
changed
True
cmd
set -o pipefail
dnf install -y jq
# Deprecated in 1.24
for node in $(kubectl get nodes -o json | jq -r '.items[] | select(.spec.taints[]?.key=="node-role.kubernetes.io/master") | .metadata.labels."kubernetes.io/hostname"');
do
  kubectl taint node ${node} node-role.kubernetes.io/master:NoSchedule-
done
# Working starting on 1.24
for node in $(kubectl get nodes -o json | jq -r '.items[] | select(.spec.taints[]?.key=="node-role.kubernetes.io/control-plane") | .metadata.labels."kubernetes.io/hostname"');
do
  kubectl taint node ${node} node-role.kubernetes.io/control-plane:NoSchedule-
done
delta
0:00:01.590534
end
2023-10-29 00:51:00.158854
invocation
{
    "module_args": {
        "_raw_params": "set -o pipefail\ndnf install -y jq\n# Deprecated in 1.24\nfor node in $(kubectl get nodes -o json | jq -r '.items[] | select(.spec.taints[]?.key==\"node-role.kubernetes.io/master\") | .metadata.labels.\"kubernetes.io/hostname\"');\ndo\n  kubectl taint node ${node} node-role.kubernetes.io/master:NoSchedule-\ndone\n# Working starting on 1.24\nfor node in $(kubectl get nodes -o json | jq -r '.items[] | select(.spec.taints[]?.key==\"node-role.kubernetes.io/control-plane\") | .metadata.labels.\"kubernetes.io/hostname\"');\ndo\n  kubectl taint node ${node} node-role.kubernetes.io/control-plane:NoSchedule-\ndone\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-29 00:50:58.568320
stderr

stderr_lines
[]
stdout
Last metadata expiration check: 0:07:22 ago on Sun 29 Oct 2023 12:43:37 AM UTC.
Package jq-1.6-15.el9.x86_64 is already installed.
Dependencies resolved.
Nothing to do.
Complete!
node/controller-01.k8scluster.kubeinit.local untainted
stdout_lines
[
    "Last metadata expiration check: 0:07:22 ago on Sun 29 Oct 2023 12:43:37 AM UTC.",
    "Package jq-1.6-15.el9.x86_64 is already installed.",
    "Dependencies resolved.",
    "Nothing to do.",
    "Complete!",
    "node/controller-01.k8scluster.kubeinit.local untainted"
]