Ajout Alma en cours
This commit is contained in:
36
tasks/RedHat/install-front.yml
Normal file
36
tasks/RedHat/install-front.yml
Normal file
@@ -0,0 +1,36 @@
|
||||
- name: Front - Install packages
|
||||
ansible.builtin.dnf:
|
||||
name: "{{ item }}"
|
||||
state: present
|
||||
loop: "{{ front.packages }}"
|
||||
tags:
|
||||
- install_front
|
||||
|
||||
- name: Front - Configure nginx port
|
||||
ansible.builtin.lineinfile:
|
||||
path: /etc/nginx/conf.d/zabbix.conf
|
||||
regexp: 'listen 8080;'
|
||||
line: " listen 80;"
|
||||
tags:
|
||||
- install_front
|
||||
notify: Restart nginx
|
||||
|
||||
- name: Front - Configure nginx url
|
||||
ansible.builtin.lineinfile:
|
||||
path: /etc/nginx/conf.d/zabbix.conf
|
||||
regexp: 'server_name example.com;'
|
||||
line: " server_name {{ inventory_hostname }};"
|
||||
tags:
|
||||
- install_front
|
||||
notify:
|
||||
- Restart nginx
|
||||
- Restart php-fpm
|
||||
|
||||
- name: Front - Configure keepalived
|
||||
ansible.builtin.template:
|
||||
src: keepalived.conf.j2
|
||||
dest: /etc/keepalived/keepalived.conf
|
||||
owner: root
|
||||
group: root
|
||||
mode: 0644
|
||||
notify: Restart Keepalived
|
||||
Reference in New Issue
Block a user