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