82870034 发表于 2018-7-29 06:43:00

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]
查看完整版本: ansible组件-playbook学习笔记