aboveops.template

aboveops.template

Create a file from a template

Description

This role acts as a simple tool that uses the template feature of Ansible.

Just give it a template, and it will create a file on your target system.

Example

- 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"

Install

You can install this role from Ansible Galaxy:

ansible-galaxy install aboveops.template

License

MIT

Author Information

Dmitrii Kashin, freehck@freehck.com

Informazioni sul progetto

template module wrapped into the role

Installa
ansible-galaxy install aboveops.template
Licenza
Unknown
Download
290
Proprietario
AboveOps - DevOps consulting.