summaryrefslogtreecommitdiffstats
path: root/roles/common/tasks/dnf.yml
blob: e90722da343aeb152ab8b9bcc5643d93d0596e3d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
- name: Affichage historique
  ini_file: dest=/etc/dnf/dnf.conf
            section=main
            option=history_list_view
            value=cmds
  when: ansible_distribution == "Fedora" and ansible_distribution_version|int >= 22

- name: Clean requirements on remove
  ini_file: dest=/etc/dnf/dnf.conf
            section=main
            option=clean_requirements_on_remove
            value=true
  when: ansible_distribution == "Fedora" and ansible_distribution_version|int >= 22

- name: Désactivation delta rpm
  ini_file: dest=/etc/dnf/dnf.conf
            section=main
            option=deltarpm
            value=false
  when: ansible_distribution_version|int >= 22 and ansible_architecture == "x86_64"
        and ansible_distribution_release != "Rawhide"
        or ansible_virtualization_role == "guest" and ansible_distribution_version|int >= 22

- name: Nombre mini de noyaux installés
  ini_file: dest=/etc/dnf/dnf.conf
            section=main
            option=installonly_limit
            value={{ minkernel }}
  when: ansible_virtualization_role == "guest" and ansible_distribution_version|int >= 22

- name: Nombre maxi de noyaux installés
  ini_file: dest=/etc/dnf/dnf.conf
            section=main
            option=installonly_limit
            value={{ maxkernel }}
  when: ansible_virtualization_role != "guest" and ansible_distribution_version|int >= 22