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