[root@davery01 ~]# ansible-playbook /etc/ansible/when.yml 107机器脚本没有定义就不会有输出 把脚本when条件注释掉,所有机器就会输出了 [root@davery01 ~]# ansible-playbook /etc/ansible/when.yml 十一、Ansible playbook中的handlers,类似于shell中的&&,适用于更新配置文件 执行task之后,服务器发生变化之后...