fix: Improve apt facts install

Reduce the number of packages installed by the apt package facts
preflight by using the apt module and disabling recommends packages.

Signed-off-by: SuperQ <superq@gmail.com>
This commit is contained in:
SuperQ 2024-04-27 16:35:18 +02:00
parent f003067377
commit 37b129f5ed
No known key found for this signature in database
GPG key ID: C646B23C9E3245F1
20 changed files with 20 additions and 0 deletions

View file

@ -9,6 +9,7 @@
ansible.builtin.package:
name: "{{ _pkg_fact_req }}"
state: present
install_recommends: false
when: (_pkg_fact_req)
vars:
_pkg_fact_req: "{% if (ansible_pkg_mgr == 'apt') %}\

View file

@ -9,6 +9,7 @@
ansible.builtin.package:
name: "{{ _pkg_fact_req }}"
state: present
install_recommends: false
when: (_pkg_fact_req)
vars:
_pkg_fact_req: "{% if (ansible_pkg_mgr == 'apt') %}\

View file

@ -9,6 +9,7 @@
ansible.builtin.package:
name: "{{ _pkg_fact_req }}"
state: present
install_recommends: false
when: (_pkg_fact_req)
vars:
_pkg_fact_req: "{% if (ansible_pkg_mgr == 'apt') %}\

View file

@ -9,6 +9,7 @@
ansible.builtin.package:
name: "{{ _pkg_fact_req }}"
state: present
install_recommends: false
when: (_pkg_fact_req)
vars:
_pkg_fact_req: "{% if (ansible_pkg_mgr == 'apt') %}\

View file

@ -9,6 +9,7 @@
ansible.builtin.package:
name: "{{ _pkg_fact_req }}"
state: present
install_recommends: false
when: (_pkg_fact_req)
vars:
_pkg_fact_req: "{% if (ansible_pkg_mgr == 'apt') %}\

View file

@ -9,6 +9,7 @@
ansible.builtin.package:
name: "{{ _pkg_fact_req }}"
state: present
install_recommends: false
when: (_pkg_fact_req)
vars:
_pkg_fact_req: "{% if (ansible_pkg_mgr == 'apt') %}\

View file

@ -9,6 +9,7 @@
ansible.builtin.package:
name: "{{ _pkg_fact_req }}"
state: present
install_recommends: false
when: (_pkg_fact_req)
vars:
_pkg_fact_req: "{% if (ansible_pkg_mgr == 'apt') %}\

View file

@ -9,6 +9,7 @@
ansible.builtin.package:
name: "{{ _pkg_fact_req }}"
state: present
install_recommends: false
when: (_pkg_fact_req)
vars:
_pkg_fact_req: "{% if (ansible_pkg_mgr == 'apt') %}\

View file

@ -9,6 +9,7 @@
ansible.builtin.package:
name: "{{ _pkg_fact_req }}"
state: present
install_recommends: false
when: (_pkg_fact_req)
vars:
_pkg_fact_req: "{% if (ansible_pkg_mgr == 'apt') %}\

View file

@ -9,6 +9,7 @@
ansible.builtin.package:
name: "{{ _pkg_fact_req }}"
state: present
install_recommends: false
when: (_pkg_fact_req)
vars:
_pkg_fact_req: "{% if (ansible_pkg_mgr == 'apt') %}\

View file

@ -9,6 +9,7 @@
ansible.builtin.package:
name: "{{ _pkg_fact_req }}"
state: present
install_recommends: false
when: (_pkg_fact_req)
vars:
_pkg_fact_req: "{% if (ansible_pkg_mgr == 'apt') %}\

View file

@ -9,6 +9,7 @@
ansible.builtin.package:
name: "{{ _pkg_fact_req }}"
state: present
install_recommends: false
when: (_pkg_fact_req)
vars:
_pkg_fact_req: "{% if (ansible_pkg_mgr == 'apt') %}\

View file

@ -9,6 +9,7 @@
ansible.builtin.package:
name: "{{ _pkg_fact_req }}"
state: present
install_recommends: false
when: (_pkg_fact_req)
vars:
_pkg_fact_req: "{% if (ansible_pkg_mgr == 'apt') %}\

View file

@ -9,6 +9,7 @@
ansible.builtin.package:
name: "{{ _pkg_fact_req }}"
state: present
install_recommends: false
when: (_pkg_fact_req)
vars:
_pkg_fact_req: "{% if (ansible_pkg_mgr == 'apt') %}\

View file

@ -9,6 +9,7 @@
ansible.builtin.package:
name: "{{ _pkg_fact_req }}"
state: present
install_recommends: false
when: (_pkg_fact_req)
vars:
_pkg_fact_req: "{% if (ansible_pkg_mgr == 'apt') %}\

View file

@ -9,6 +9,7 @@
ansible.builtin.package:
name: "{{ _pkg_fact_req }}"
state: present
install_recommends: false
when: (_pkg_fact_req)
vars:
_pkg_fact_req: "{% if (ansible_pkg_mgr == 'apt') %}\

View file

@ -9,6 +9,7 @@
ansible.builtin.package:
name: "{{ _pkg_fact_req }}"
state: present
install_recommends: false
when: (_pkg_fact_req)
vars:
_pkg_fact_req: "{% if (ansible_pkg_mgr == 'apt') %}\

View file

@ -9,6 +9,7 @@
ansible.builtin.package:
name: "{{ _pkg_fact_req }}"
state: present
install_recommends: false
when: (_pkg_fact_req)
vars:
_pkg_fact_req: "{% if (ansible_pkg_mgr == 'apt') %}\

View file

@ -9,6 +9,7 @@
ansible.builtin.package:
name: "{{ _pkg_fact_req }}"
state: present
install_recommends: false
when: (_pkg_fact_req)
vars:
_pkg_fact_req: "{% if (ansible_pkg_mgr == 'apt') %}\

View file

@ -9,6 +9,7 @@
ansible.builtin.package:
name: "{{ _pkg_fact_req }}"
state: present
install_recommends: false
when: (_pkg_fact_req)
vars:
_pkg_fact_req: "{% if (ansible_pkg_mgr == 'apt') %}\