Created
October 18, 2017 12:48
-
-
Save Andrei-Stepanov/bf7cbc8e08408fe00f82c98170cd9d32 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- name: Add restraint repo for restraint-rhts on Fedora hosts | |
when: ansible_distribution == 'Fedora' | |
vars: | |
copr_fedora_release: > | |
{{ | |
'rawhide' if ansible_distribution_release == 'Rawhide' | |
else ansible_distribution_major_version | |
}} | |
get_url: | |
url: "https://copr.fedorainfracloud.org/coprs/bpeck/restraint/repo/\ | |
fedora-{{copr_fedora_release}}/bpeck-restraint-fedora-{{copr_fedora_release}}.repo" | |
dest: /etc/yum.repos.d/restraint.repo |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment