如何为 MongoDB 备份维护 zabbix?与 ansible

How do I maintain zabbix for MongoDB backup? with ansible

我必须使用 ansible

为 Mongodb 备份实施 zabbix 维护

任务如下:

https://www.zabbix.com/documentation/5.4/en/manual/maintenance

https://docs.ansible.com/ansible/latest/collections/community/zabbix/zabbix_maintenance_module.html

Ansible 模块在这里:https://github.com/ansible-collections/community.zabbix

示例:

- name: Create a named maintenance window for host www1 for 90 minutes
  community.zabbix.zabbix_maintenance:
    name: Update of www1
    host_name: www1.example.com
    state: present
    minutes: 90
    server_url: https://...
    login_user: ...
    login_password: ...