'ansible - how do I find the roles of a given node?
It seems like a simple thing to ask.
I have a system with many ansible roles at play. I have a login node, I want to find out what ansible roles it satisfies so that I can provision more like it. Is there a file somewhere that contains this information? A command? A playbook I can write?
Solution 1:[1]
Not sure if this is what you need but you can try this:
ansible-playbook -i inv_file --limit=your_login_node --list-tasks
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Damian S?owi?ski |
