summaryrefslogtreecommitdiffstats
path: root/roles/common/tasks/repos.yml
blob: e85a0e48050bf578d70215855eceb49803a4e964 (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
- name: Installation du miroir local updates
  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"

- name: Installation du miroir updates-testing
  copy: src=updates-testing-fantom.repo dest=/etc/yum.repos.d/updates-testing-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-testing
  ini_file: dest=/etc/yum.repos.d/fedora-updates-testing.repo
            section=updates-testing
            option=enabled
            value=0
  when: ansible_distribution_version|int >= 21 and ansible_architecture == "x86_64"
        and ansible_distribution_release != "Rawhide"

- name: Activation du miroir updates-testing
  ini_file: dest=/etc/yum.repos.d/updates-testing-fantom.repo
            section=updates-testing-fantom
            option=enabled
            value=1
  when: ansible_distribution_version|int >= 21 and ansible_architecture == "x86_64"
        and ansible_distribution_release != "Rawhide"