ansible组件-playbook学习笔记
># vim handlers.yml >- name: handlers test>hosts: web1
>user: root
>tasks:
>- name: test copy
> copy: src=/etc/passwd dest=/tmp/handlers.txt
> notify: test handlers
>hanlers:
>- name: test handlers
> shell: echo "www.lala.com" >> /tmp/handlers.txt
页:
[1]