bk1.yaml 523 B

12345678910111213141516171819202122232425262728293031
  1. networks:
  2. web:
  3. hosts:
  4. - web1.example.com
  5. - web2.example.com
  6. db:
  7. hosts:
  8. - db1.example.com
  9. - db2.example.com
  10. tasks:
  11. health:
  12. desc: Get basic health info
  13. run: uptime
  14. time:
  15. desc: Print current time (on local machine)
  16. local: date -Iseconds
  17. once: true
  18. hello:
  19. desc: Word count on "Hello"
  20. local: echo 'Hello' | wc
  21. once: true
  22. hello-python:
  23. desc: Says hello with python
  24. python: |
  25. for i in range(10):
  26. print('hello')
  27. once: true