pkg is pkgng
This commit is contained in:
@@ -40,7 +40,7 @@
|
|||||||
when: "{{ ansible_facts['os_family'] }} == 'RedHat' and ('{{ nrpe_package }}' not in ansible_facts.packages) "
|
when: "{{ ansible_facts['os_family'] }} == 'RedHat' and ('{{ nrpe_package }}' not in ansible_facts.packages) "
|
||||||
|
|
||||||
- name: Ensure NRPE is installed (FreeBSD)
|
- name: Ensure NRPE is installed (FreeBSD)
|
||||||
ansible.builtin.pkg:
|
ansible.builtin.pkgng:
|
||||||
name: "{{ nrpe_package }}"
|
name: "{{ nrpe_package }}"
|
||||||
state: present
|
state: present
|
||||||
become: yes
|
become: yes
|
||||||
@@ -48,7 +48,7 @@
|
|||||||
when:
|
when:
|
||||||
- ansible_facts['os_family'] == 'FreeBSD'
|
- ansible_facts['os_family'] == 'FreeBSD'
|
||||||
- not nrpe_installed
|
- not nrpe_installed
|
||||||
|
|
||||||
- name: Set psutil_installed fact if any package name contains "psutil"
|
- name: Set psutil_installed fact if any package name contains "psutil"
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
psutil_installed: "{{ (ansible_facts.packages | default({}) | dict2items | map(attribute='key') | select('search','psutil') | list) | length > 0 }}"
|
psutil_installed: "{{ (ansible_facts.packages | default({}) | dict2items | map(attribute='key') | select('search','psutil') | list) | length > 0 }}"
|
||||||
@@ -79,7 +79,7 @@
|
|||||||
- not psutil_installed
|
- not psutil_installed
|
||||||
|
|
||||||
- name: Ensure psutil is installed (FreeBSD)
|
- name: Ensure psutil is installed (FreeBSD)
|
||||||
ansible.builtin.pkg:
|
ansible.builtin.pkgng:
|
||||||
name: python3-psutil
|
name: python3-psutil
|
||||||
state: present
|
state: present
|
||||||
become: yes
|
become: yes
|
||||||
|
|||||||
Reference in New Issue
Block a user