Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - name: maintenance
- zabbix_maintenance:
- name: Pause
- host_groups:
- - "{{ item }}"
- with_items:
- - { 'zabbix_hosts_groups' }
- state: "{{ zabbix_state }}"
- server_url: http://zabbix.XXX.com
- login_user: YYY
- login_password: XXX
- minutes: 90
- desc: "Paused-for-dep"
- ansible-playbook -i 'localhost,' --connection=local zabbix-maintenance.yml -e '{"zabbix_hosts_groups":"Test1","Test2"}' -e 'zabbix_state=present
- - name: maintenance
- zabbix_maintenance:
- name: Pause
- host_groups: "{{ zabbix_hosts_groups }}"
- state: "{{ zabbix_state }}"
- server_url: http://zabbix.XXX.com
- login_user: YYY
- login_password: XXX
- minutes: 90
- desc: "Paused-for-dep"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement