Supprimer tasks/install-front.yml

main
stef 2026-02-18 22:29:06 +01:00
parent 2019da60b8
commit bc838ae20d
1 changed files with 0 additions and 47 deletions

View File

@ -1,47 +0,0 @@
- name: Install RHEL Front
when: ansible_os_family == "RedHat"
block:
- name: Install packages
ansible.builtin.dnf:
name: "{{ item }}"
state: latest
loop: "{{ rhel_front_packages }}"
tags:
- install_front
- name: Generate front php config
ansible.builtin.template:
src: zabbix.conf.php.j2
dest: /usr/share/zabbix/conf/zabbix.conf.php
owner: root
group: root
mode: 644
tags:
- install_front
- name: Install Debian Front
when: ansible_os_family == "Debian"
block:
- name: Install Debian packages
ansible.builtin.apt:
name: "{{ item }}"
state: latest
loop: "{{ debian_front_packages }}"
tags:
- install_front
- name: Configure nginx port
ansible.builtin.lineinfile:
path: /etc/zabbix/nginx.conf
regexp: 'listen 8080;'
line: " listen 80;"
tags:
- install_srv
- name: Configure nginx url
ansible.builtin.lineinfile:
path: /etc/zabbix/nginx.conf
regexp: 'server_name example.com;'
line: " server_name {{ inventory_hostname }};"
tags:
- install_srv
notify: Restart nginx