Fix RHEL/Rocky 9 compatibility
This commit is contained in:
@@ -13,9 +13,9 @@
|
|||||||
deb: "{{ full_url }}"
|
deb: "{{ full_url }}"
|
||||||
state: present
|
state: present
|
||||||
|
|
||||||
- name: "Install the 'ping_exporter' package from Github (RHEL)"
|
- name: "Install the 'ping_exporter' package from Github (RedHat)"
|
||||||
tags: ping_exporter
|
tags: ping_exporter
|
||||||
when: ansible_os_family == "RHEL"
|
when: ansible_os_family == "RedHat"
|
||||||
notify: "Restart-ping-exporter"
|
notify: "Restart-ping-exporter"
|
||||||
vars:
|
vars:
|
||||||
version: "{{ ping_exporter_version }}"
|
version: "{{ ping_exporter_version }}"
|
||||||
@@ -24,6 +24,22 @@
|
|||||||
ansible.builtin.dnf:
|
ansible.builtin.dnf:
|
||||||
name: "{{ full_url }}"
|
name: "{{ full_url }}"
|
||||||
state: present
|
state: present
|
||||||
|
disable_gpg_check: true
|
||||||
|
|
||||||
|
- name: "Create a ping_exporter user"
|
||||||
|
tags: ping_exporter
|
||||||
|
ansible.builtin.user:
|
||||||
|
name: ping_exporter
|
||||||
|
system: true
|
||||||
|
|
||||||
|
- name: "Ensure that the configuration folder exitsts"
|
||||||
|
tags: ping_exporter
|
||||||
|
ansible.builtin.file:
|
||||||
|
state: directory
|
||||||
|
path: /etc/ping_exporter.
|
||||||
|
owner: ping_exporter
|
||||||
|
group: root
|
||||||
|
mode: "0755"
|
||||||
|
|
||||||
- name: "Push the configuration file"
|
- name: "Push the configuration file"
|
||||||
tags: ping_exporter
|
tags: ping_exporter
|
||||||
|
|||||||
Reference in New Issue
Block a user