PyratLabs / ansible-role-k3s

Ansible role for installing k3s as either a standalone server or HA cluster.
BSD 3-Clause "New" or "Revised" License
627 stars 135 forks source link

Compare `kubectl get nodes` with ansible_hostname, not ansible_fqdn/i… #212

Closed fragpit closed 9 months ago

fragpit commented 11 months ago

Compare kubectl get nodes with ansible_hostname, not ansible_fqdn/i…

TITLE

Summary

Node drain and delete task should compare kubectl get nodes output with host hostname not fqdn. ansible_play_hosts contains inventory hostname which is often FQDN.