--- - name: Using Zabbix collection to manage Zabbix Server's elements with authentication key hosts: all collections: - community.zabbix roles: - role: zabbix_agent zabbix_agent_server: monitoring.***CONTENTS REDACTED*** tasks: - name: Set API token ansible.builtin.set_fact: ansible_zabbix_auth_key: ***CONTENTS REDACTED*** - name: add zabbixx vars: ansible_network_os: community.zabbix.zabbix ansible_connection: httpapi ansible_httpapi_port: 80 ansible_httpapi_use_ssl: false # Set to true for HTTPS ansible_httpapi_validate_certs: false # For HTTPS set to true to validate server's certificate delegate_to: ***CONTENTS REDACTED*** zabbix_host: host_name: ***CONTENTS REDACTED*** inventory_zabbix: asset_tag: ***CONTENTS REDACTED*** model: OptiPlex 9010