Almalinux validé
This commit is contained in:
@@ -15,10 +15,14 @@
|
||||
ansible.builtin.dnf:
|
||||
name: gnupg2
|
||||
state: present
|
||||
- name: Import a key from a url
|
||||
- name: Copie GPG key
|
||||
ansible.builtin.copy:
|
||||
src: RPM-GPG-KEY-ZABBIX-B5333005
|
||||
dest: /tmp/RPM-GPG-KEY-ZABBIX-B5333005
|
||||
- name: Import a key
|
||||
ansible.builtin.rpm_key:
|
||||
state: present
|
||||
key: https://repo.zabbix.com/RPM-GPG-KEY-ZABBIX-B5333005
|
||||
key: /tmp/RPM-GPG-KEY-ZABBIX-B5333005
|
||||
- name: Add Package
|
||||
ansible.builtin.dnf:
|
||||
name: "https://repo.zabbix.com/zabbix/{{ zabbix_version }}/release/alma/{{ ansible_distribution_major_version }}/noarch/zabbix-release-latest-{{ zabbix_version }}.el{{ ansible_distribution_major_version }}.noarch.rpm"
|
||||
@@ -36,12 +40,23 @@
|
||||
ansible.builtin.shell:
|
||||
cmd: dnf clean all
|
||||
|
||||
- name: set selinux permivise
|
||||
ansible.builtin.lineinfile:
|
||||
path: /etc/selinux/config
|
||||
regexp: '^SELINUX=.*'
|
||||
line: "SELINUX=permissive"
|
||||
register: selinux
|
||||
|
||||
- name: Reboot if necessary
|
||||
ansible.builtin.reboot:
|
||||
when: selinux.changed
|
||||
|
||||
- name: Prepare Debian
|
||||
when: ansible_os_family == "Debian"
|
||||
block:
|
||||
- name: Debian Repo
|
||||
ansible.builtin.apt:
|
||||
deb: "{{repo}}"
|
||||
deb: "https://repo.zabbix.com/zabbix/{{ zabbix_version }}/release/debian/pool/main/z/zabbix-release/zabbix-release_latest_{{ zabbix_version }}+debian13_all.deb"
|
||||
- name: Mise à jour le cache des paquets
|
||||
ansible.builtin.apt:
|
||||
update_cache: yes
|
||||
@@ -57,20 +72,21 @@
|
||||
|
||||
- name: Server - Install
|
||||
ansible.builtin.include_tasks: "{{ansible_os_family}}/install-srv.yml"
|
||||
when: role == "srv"
|
||||
when:
|
||||
- role == "srv"
|
||||
tags:
|
||||
- install_srv
|
||||
|
||||
# - name: Proxy - Install
|
||||
# ansible.builtin.include_tasks: "{{ansible_os_family}}/install-proxy.yml"
|
||||
# tags:
|
||||
# - install_proxy
|
||||
# when: role == "proxy"
|
||||
- name: Proxy - Install
|
||||
ansible.builtin.include_tasks: "{{ansible_os_family}}/install-proxy.yml"
|
||||
tags:
|
||||
- install_proxy
|
||||
when: role == "proxy"
|
||||
|
||||
|
||||
- name: Front - Install
|
||||
ansible.builtin.include_tasks: "{{ansible_os_family}}/install-front.yml"
|
||||
when: role == "srv"
|
||||
when: role == "srv" or role == "front"
|
||||
tags:
|
||||
- install_front
|
||||
|
||||
|
||||
Reference in New Issue
Block a user