diff --git a/templates/hosts.ini.j2 b/templates/hosts.ini.j2 new file mode 100644 index 0000000..b5762c4 --- /dev/null +++ b/templates/hosts.ini.j2 @@ -0,0 +1,2 @@ +[{{ hostname }}] +{{ ip }} diff --git a/templates/main.yaml.j2 b/templates/main.yaml.j2 new file mode 100644 index 0000000..b40d7c9 --- /dev/null +++ b/templates/main.yaml.j2 @@ -0,0 +1,10 @@ +--- +{% for vmo in vmList %} +- hosts: + roles: + - monitoring-client + - monitoring-logs + {% if vmo.hostname == "monitoring" %} + - monitoring-master + {% endif %} +{% endif %}