main.yml 705 B

12345678910111213141516171819202122232425262728293031
  1. - name: Create config for Zabbix
  2. copy: src=ssl.conf dest=/etc/zabbix/zabbix_agentd.d/ssl.conf
  3. notify:
  4. - restart zabbix-agent
  5. - name: Create ssl scripts directory
  6. file:
  7. path: /etc/zabbix/scripts/ssl
  8. state: directory
  9. mode: 0700
  10. - name: Create script for Zabbix
  11. copy:
  12. src: check_ssl_https.sh
  13. dest: /etc/zabbix/scripts/ssl/check_ssl_https.sh
  14. mode: 0700
  15. backup: yes
  16. - name: Create script for Zabbix
  17. copy:
  18. src: disc_ssl_https.sh
  19. dest: /etc/zabbix/scripts/ssl/disc_ssl_https.sh
  20. mode: 0700
  21. backup: yes
  22. - name: Create script for Zabbix
  23. copy:
  24. src: domains_list.txt
  25. dest: /etc/zabbix/scripts/ssl/domains_list.txt
  26. mode: 0600
  27. backup: yes