aboveops.template

aboveops.template

从模板创建文件

描述

你可以把这个角色看作是模板 Ansible 模块的一个包装器。

只需提供一个模板,就可以在目标系统上生成相应的文件。

示例

- 角色: 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"

安装

这个角色可以从 Ansible Galaxy 安装:

ansible-galaxy install aboveops.template

许可证

MIT

作者信息

Dmitrii Kashin, freehck@freehck.com

关于项目

template module wrapped into the role

安装
ansible-galaxy install aboveops.template
许可证
Unknown
下载
290
拥有者
AboveOps - DevOps consulting.