一、ansible-playbook编写
zabbix-agentd.yaml
---
- hosts: "{{ host }}"
remote_user: "{{ user }}"
gather_facts: true
roles:
- create-zabbix-agent
二、局部变量
{
"hosts": [
"192.168.56.4",
"192.168.56.5"
],
"user": "root"
}
一、ansible-playbook编写
zabbix-agentd.yaml
---
- hosts: "{{ host }}"
remote_user: "{{ user }}"
gather_facts: true
roles:
- create-zabbix-agent
二、局部变量
{
"hosts": [
"192.168.56.4",
"192.168.56.5"
],
"user": "root"
}
转载于:https://my.oschina.net/u/3138954/blog/1816258