aboveops.template
aboveops.template
Datei aus Vorlage erstellen
Beschreibung
Man kann diese Rolle als eine Hülle für das Template-Ansible-Modul betrachten.
Geben Sie einfach eine Vorlage an, und erhalten Sie das Ergebnis in einer Datei auf dem Zielsystem.
Beispiel
- role: aboveops.template
template_content: |
upstream grafana {
{% for host in groups["monitoring"] %}
server {{ hostvars[host].backnet_ip }}:3000;
{% endfor %}
}
template_dest: "/etc/nginx/conf.d/grafana_upstream.conf"
Installation
Diese Rolle kann von Ansible Galaxy installiert werden:
ansible-galaxy install aboveops.template
Lizenz
MIT
Autoreninformationen
Dmitrii Kashin, freehck@freehck.com