Files
dsk-iac/ansible/zabbix_agent/roles/zabbix-agent/tasks/tlspsk_auto.yml
2023-12-19 13:36:16 +09:00

15 lines
456 B
YAML

---
- ansible.builtin.include_tasks: tlspsk_auto_linux.yml
when: (ansible_os_family != "Windows") or (zabbix_agent_docker | bool)
- ansible.builtin.include_tasks: tlspsk_auto_windows.yml
when: ansible_os_family == "Windows"
- name: AutoPSK | Default tlsaccept and tlsconnect to enforce PSK
ansible.builtin.set_fact:
zabbix_agent_tlsaccept: psk
zabbix_agent_tlsconnect: psk
when: zabbix_api_create_hosts
tags:
- config