Need to change the labels of worker nodes with a predefined combination of alphanumeric characters (example: machine01) as and when they join the cluster (again and again if node(s) leave or when new nodes join the cluster). Is it possible to do it using ansible or we need to setup a cronjob. If possible using ansible, I would like to have a hint on how we can run a playbook once and keep it active in background to keep on checking new node labels. Which is more cheap computationally.
Asked
Active
Viewed 44 times
-1
-
1please put more description to your question and what have you tried so far – isilia Dec 27 '22 at 10:01
-
Can you provide more information and description about your environment, infrastructure and what you try to achieve how? Currently it is fully unclear and one can only guess. – U880D Dec 27 '22 at 12:18
1 Answers
1
How we can run a playbook once and keep it active (annot.: running) in background to keep on checking new node labels?
Since Ansible is a push based Configuration Management tool, it is not designed and developed for such use case. Ansible will just connect to the remote device via SSH and perform a configuration task.
Further Documentation

U880D
- 8,601
- 6
- 24
- 40