aboveops.systemd
废弃警告
这个 Ansible 角色已被弃用,建议使用集合 almaops.common
。
aboveops.systemd
将 systemd ansible 模块封装为角色
描述
这个角色只是将 systemd ansible 模块封装成角色。
示例
- 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"
- role: aboveops.systemd
systemd_service_name: nginx
systemd_service_state: reloaded
systemd_daemon_reload: false
when: template_result is changed
安装
这个角色可以从 Ansible Galaxy 安装:
ansible-galaxy install aboveops.systemd
许可证
MIT
作者信息
Dmitrii Kashin, freehck@freehck.com