Split incus role from playbook
This commit is contained in:
parent
0f8822e632
commit
eaaa35de25
11 changed files with 531 additions and 318 deletions
5
ansible/roles/system/files/incus.servers.tpl
Normal file
5
ansible/roles/system/files/incus.servers.tpl
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
{% for host in vars['ansible_play_hosts'] | sort %}
|
||||
{% if hostvars[host]['incus_name'] == task_name and "cluster" in hostvars[host]['incus_roles'] %}
|
||||
- {{ host }}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
Loading…
Add table
Add a link
Reference in a new issue