summaryrefslogtreecommitdiffstats
path: root/roles/common/tasks/repos.yml
blob: 2d1cece657951e85e45b8aa18029109c46412df8 (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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
- name: Installation du dépôt updates Fantom
  copy: src=updates-fantom.repo dest=/etc/yum.repos.d/updates-fantom.repo
  when: ansible_distribution_version|int >= 20 and ansible_architecture == "x86_64"
        and ansible_distribution_release != "Rawhide"

- name: Désactivation du dépôt Updates
  ini_file: dest=/etc/yum.repos.d/fedora-updates.repo
            section=updates
            option=enabled
            value=0
  when: ansible_distribution_version|int >= 20 and ansible_architecture == "x86_64"
        and ansible_distribution_release != "Rawhide" and outdoor is not defined

- name: Désactivation du dépôt updates Fantom
  ini_file: dest=/etc/yum.repos.d/updates-fantom.repo
            section=updates-fantom
            option=enabled
            value=0
  when: ansible_distribution_version|int >= 20 and ansible_architecture == "x86_64"
        and ansible_distribution_release != "Rawhide" and outdoor is defined

- name: Activation du dépôt Updates
  ini_file: dest=/etc/yum.repos.d/fedora-updates.repo
            section=updates
            option=enabled
            value=1
  when: ansible_distribution_version|int >= 20 and ansible_architecture == "x86_64"
        and ansible_distribution_release != "Rawhide" and outdoor is defined

- name: Activation du dépôt updates Fantom
  ini_file: dest=/etc/yum.repos.d/updates-fantom.repo
            section=updates-fantom
            option=enabled
            value=1
  when: ansible_distribution_version|int >= 20 and ansible_architecture == "x86_64"
        and ansible_distribution_release != "Rawhide" and outdoor is not defined


- name: Installation du dépôt updates Hidden
  copy: src=updates-fantom-hidden.repo dest=/etc/yum.repos.d/updates-fantom-hidden.repo
  when: ansible_distribution_version|int >= 20 and ansible_architecture == "x86_64"
        and ansible_distribution_release != "Rawhide"

- name: Installation du dépôt updates Fallback
  copy: src=updates-fantom-fallback.repo dest=/etc/yum.repos.d/updates-fantom-fallback.repo
  when: ansible_distribution_version|int >= 20 and ansible_architecture == "x86_64"
        and ansible_distribution_release != "Rawhide"


- name: Installation du dépôt Fedora Fantom
  copy: src=fedora-fantom.repo dest=/etc/yum.repos.d/fedora-fantom.repo
  when: ansible_distribution_version|int >= 24 and ansible_architecture == "x86_64"
        and ansible_distribution_release != "Rawhide"

- name: Désactivation du dépôt Fedora
  ini_file: dest=/etc/yum.repos.d/fedora.repo
            section=fedora
            option=enabled
            value=0
  when: ansible_distribution_version|int >= 25 and ansible_architecture == "x86_64"
        and ansible_distribution_release != "Rawhide" and outdoor is not defined

- name: Désactivation du dépôt Fedora Fantom
  ini_file: dest=/etc/yum.repos.d/fedora-fantom.repo
            section=fedora-fantom
            option=enabled
            value=0
  when: ansible_distribution_version|int >= 24 and ansible_architecture == "x86_64"
        and ansible_distribution_release != "Rawhide" and outdoor is defined

- name: Activation du dépôt Fedora
  ini_file: dest=/etc/yum.repos.d/fedora.repo
            section=fedora
            option=enabled
            value=1
  when: ansible_distribution_version|int >= 24 and ansible_architecture == "x86_64"
        and ansible_distribution_release != "Rawhide" and outdoor is defined

- name: Activation du dépôt Fedora Fantom
  ini_file: dest=/etc/yum.repos.d/fedora-fantom.repo
            section=fedora-fantom
            option=enabled
            value=1
  when: ansible_distribution_version|int >= 25 and ansible_architecture == "x86_64"
        and ansible_distribution_release != "Rawhide" and outdoor is not defined


- name: Installation du dépôt Fedora fantom Hidden
  copy: src=fedora-fantom-hidden.repo dest=/etc/yum.repos.d/fedora-fantom-hidden.repo
  when: ansible_distribution_version|int >= 24 and ansible_architecture == "x86_64"
        and ansible_distribution_release != "Rawhide"

- name: Installation du dépôt Fedora fantom Fallback
  copy: src=fedora-fantom-fallback.repo dest=/etc/yum.repos.d/fedora-fantom-fallback.repo
  when: ansible_distribution_version|int >= 24 and ansible_architecture == "x86_64"
        and ansible_distribution_release != "Rawhide"


- name: Installation du dépôt EPEL pour Centos
  yum: name=epel-release state=present
  when: ansible_distribution == "CentOS" and ansible_pkg_mgr == "yum"

- name: Installation du dépôt EPEL pour Centos
  dnf: name=epel-release state=present
  when: ansible_distribution == "CentOS" and ansible_pkg_mgr == "dnf"