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
set -o pipefail
# 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:00.538777
end
2023-10-26 20:20:59.019657
invocation
{
    "module_args": {
        "_raw_params": "set -o pipefail\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-26 20:20:58.480880
stderr

stderr_lines
[]
stdout
node/controller-01.ekscluster.kubeinit.local untainted
node/controller-02.ekscluster.kubeinit.local untainted
node/controller-03.ekscluster.kubeinit.local untainted
stdout_lines
[
    "node/controller-01.ekscluster.kubeinit.local untainted",
    "node/controller-02.ekscluster.kubeinit.local untainted",
    "node/controller-03.ekscluster.kubeinit.local untainted"
]