- 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"