feat: add option to set installonly_limit in dnf config
This commit is contained in:
parent
3b5b1086cd
commit
947920b1fa
@ -29,3 +29,5 @@ packages_uninstall:
|
|||||||
packages_uninstall_extra: []
|
packages_uninstall_extra: []
|
||||||
|
|
||||||
packages_upgrade_enabled: False
|
packages_upgrade_enabled: False
|
||||||
|
|
||||||
|
packages_dnf_installonly_limit: 2
|
||||||
|
@ -1,12 +1,12 @@
|
|||||||
---
|
---
|
||||||
- block:
|
- block:
|
||||||
- name: Uninstall pre packages
|
- name: Uninstall prerequisite packages
|
||||||
package:
|
package:
|
||||||
name: "{{ item }}"
|
name: "{{ item }}"
|
||||||
state: absent
|
state: absent
|
||||||
loop: "{{ packages_uninstall_pre + packages_uninstall_pre_extra }}"
|
loop: "{{ packages_uninstall_pre + packages_uninstall_pre_extra }}"
|
||||||
|
|
||||||
- name: Adjust packages config file
|
- name: Adjust dnf config file
|
||||||
template:
|
template:
|
||||||
src: etc/dnf/dnf.conf.j2
|
src: etc/dnf/dnf.conf.j2
|
||||||
dest: /etc/dnf/dnf.conf
|
dest: /etc/dnf/dnf.conf
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
{{ ansible_managed | comment }}
|
{{ ansible_managed | comment }}
|
||||||
[main]
|
[main]
|
||||||
gpgcheck=1
|
gpgcheck=1
|
||||||
installonly_limit=3
|
installonly_limit={{ packages_dnf_installonly_limit }}
|
||||||
clean_requirements_on_remove=True
|
clean_requirements_on_remove=True
|
||||||
best=True
|
best=True
|
||||||
skip_if_unavailable=False
|
skip_if_unavailable=False
|
||||||
|
Loading…
Reference in New Issue
Block a user