Skip to content

Latest commit

 

History

History
21 lines (16 loc) · 316 Bytes

PlayBook学习.md

File metadata and controls

21 lines (16 loc) · 316 Bytes

PlayBook 学习

先写个 demo,命名为 ansible-test.yaml:

---
- hosts: fueltank-1,fueltank-2,fueltank-3
  name: test
  remote_user: admin
  tasks:
    - name: test task
      command: mkdir /tmp/xujiyou-test

执行:

$ ansible-playbook ansible-test.yaml -f 10

效果不错哦。