---
- name: Ensuring postgresql server is started
  ansible.builtin.service:
    name: postgresql
    state: reloaded
    enabled: True
  tags:
    - zabbix-services

- name: Ensuring Zabbix server is started
  ansible.builtin.service:
    name: zabbix-server
    state: restarted
    enabled: True
  tags:
    zabbix-services

- name: Ensuring Zabbix agent is started
  ansible.builtin.service:
    name: zabbix-agent
    state: restarted
    enabled: True
  tags:
    zabbix-services

- name: Ensuring nginx server is started
  ansible.builtin.service:
    name: nginx
    state: reloaded
    enabled: True
  tags:
    zabbix-services

- name: Ensuring php-fpm service is started
  ansible.builtin.service:
    name: php-fpm
    state: reloaded
    enabled: True
  tags:
    zabbix-services

