summaryrefslogtreecommitdiffstats
path: root/ansible/roles/docker/templates/RedHat-repos.j2
diff options
context:
space:
mode:
Diffstat (limited to 'ansible/roles/docker/templates/RedHat-repos.j2')
-rw-r--r--ansible/roles/docker/templates/RedHat-repos.j27
1 files changed, 7 insertions, 0 deletions
diff --git a/ansible/roles/docker/templates/RedHat-repos.j2 b/ansible/roles/docker/templates/RedHat-repos.j2
new file mode 100644
index 000000000..6d367408c
--- /dev/null
+++ b/ansible/roles/docker/templates/RedHat-repos.j2
@@ -0,0 +1,7 @@
+[dockerrepo]
+name=Docker Repository
+# $releasever for RHEL 7 is '7Server' so we can't use $releasever
+baseurl={{ docker_project_url }}/repo/main/{{ ansible_distribution|lower|regex_replace('redhat', 'centos') }}/{{ ansible_distribution_major_version }}/
+enabled=1
+gpgcheck=1
+gpgkey={{ docker_project_url }}/gpg