ansible实战与配置 Ⅱ
# vim /etc/ansible/nginx_config/update.yml---
- hosts: chy02
user: root
roles:
- new
# ansible-playbook /etc/ansible/nginx_config/update.yml
# ansible-playbook /etc/ansible/nginx_config/update.yml
PLAY *********************************************************************************************************************
TASK ***********************************************************************************************************
ok:
TASK ******************************************************************************************************
ok: => (item={u'dest': u'conf/nginx.conf', u'src': u'nginx.conf'})
ok: => (item={u'dest': u'conf/', u'src': u'vhost'})
PLAY RECAP ***********************************************************************************************************************
chy02 : ok=2 changed=0 unreachable=0 failed=0
//执行成功
页:
[1]