feat: add ansible templates

This commit is contained in:
2022-12-28 19:18:22 +01:00
parent bc37098b11
commit d19448cf31
2 changed files with 12 additions and 0 deletions

2
templates/hosts.ini.j2 Normal file
View File

@@ -0,0 +1,2 @@
[{{ hostname }}]
{{ ip }}

10
templates/main.yaml.j2 Normal file
View File

@@ -0,0 +1,10 @@
---
{% for vmo in vmList %}
- hosts:
roles:
- monitoring-client
- monitoring-logs
{% if vmo.hostname == "monitoring" %}
- monitoring-master
{% endif %}
{% endif %}