mirror of
https://github.com/FAUSheppy/athq-vm-management
synced 2025-12-06 13:51:35 +01:00
feat: add ansible templates
This commit is contained in:
2
templates/hosts.ini.j2
Normal file
2
templates/hosts.ini.j2
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
[{{ hostname }}]
|
||||||
|
{{ ip }}
|
||||||
10
templates/main.yaml.j2
Normal file
10
templates/main.yaml.j2
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
---
|
||||||
|
{% for vmo in vmList %}
|
||||||
|
- hosts:
|
||||||
|
roles:
|
||||||
|
- monitoring-client
|
||||||
|
- monitoring-logs
|
||||||
|
{% if vmo.hostname == "monitoring" %}
|
||||||
|
- monitoring-master
|
||||||
|
{% endif %}
|
||||||
|
{% endif %}
|
||||||
Reference in New Issue
Block a user