Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save Andrei-Stepanov/bf7cbc8e08408fe00f82c98170cd9d32 to your computer and use it in GitHub Desktop.
Save Andrei-Stepanov/bf7cbc8e08408fe00f82c98170cd9d32 to your computer and use it in GitHub Desktop.
- 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