aboveops.template

aboveops.template

Créer un fichier à partir d'un modèle

Description

Vous pouvez considérer ce rôle comme un outil pour le module de modèle d'Ansible.

Il vous suffit de lui fournir un modèle et d'obtenir un résultat écrit dans un fichier sur le système cible.

Exemple

- 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

Ce rôle peut être installé depuis Ansible Galaxy :

ansible-galaxy install aboveops.template

Licence

MIT

Informations sur l'auteur

Dmitrii Kashin, freehck@freehck.com

À propos du projet

template module wrapped into the role

Installer
ansible-galaxy install aboveops.template
Licence
Unknown
Téléchargements
290
Propriétaire
AboveOps - DevOps consulting.