diff options
author | Matthieu Saulnier <fantom@fedoraproject.org> | 2014-08-15 23:58:35 +0200 |
---|---|---|
committer | Matthieu Saulnier <fantom@fedoraproject.org> | 2014-08-15 23:58:35 +0200 |
commit | 37a91abe7e867c91a7c4365c418ecf3d9faf04dc (patch) | |
tree | 67240fef6fe3cb7d1727df4a702acb9835c69a52 /roles/common/tasks/repos.yml | |
parent | 32f98b5892fad33e06d0b06cbca88578fc5b3ec0 (diff) | |
download | playbooks-ansible-37a91abe7e867c91a7c4365c418ecf3d9faf04dc.tar.gz playbooks-ansible-37a91abe7e867c91a7c4365c418ecf3d9faf04dc.tar.xz playbooks-ansible-37a91abe7e867c91a7c4365c418ecf3d9faf04dc.zip |
Add var condition in case of the use of Fedora Rawhide
Fix condition for stable release 20 or later
Rename update.yml as repos.yml in common role
Remove update system during common role
Diffstat (limited to 'roles/common/tasks/repos.yml')
-rw-r--r-- | roles/common/tasks/repos.yml | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/roles/common/tasks/repos.yml b/roles/common/tasks/repos.yml new file mode 100644 index 0000000..ee56584 --- /dev/null +++ b/roles/common/tasks/repos.yml @@ -0,0 +1,17 @@ +- 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" |