Advertisement
Guest User

Untitled

a guest
Mar 13th, 2017
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. - name: maintenance
  2. zabbix_maintenance:
  3. name: Pause
  4. host_groups:
  5. - "{{ item }}"
  6. with_items:
  7. - { 'zabbix_hosts_groups' }
  8. state: "{{ zabbix_state }}"
  9. server_url: http://zabbix.XXX.com
  10. login_user: YYY
  11. login_password: XXX
  12. minutes: 90
  13. desc: "Paused-for-dep"
  14.  
  15. ansible-playbook -i 'localhost,' --connection=local zabbix-maintenance.yml -e '{"zabbix_hosts_groups":"Test1","Test2"}' -e 'zabbix_state=present
  16.  
  17. - name: maintenance
  18. zabbix_maintenance:
  19. name: Pause
  20. host_groups: "{{ zabbix_hosts_groups }}"
  21. state: "{{ zabbix_state }}"
  22. server_url: http://zabbix.XXX.com
  23. login_user: YYY
  24. login_password: XXX
  25. minutes: 90
  26. desc: "Paused-for-dep"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement