diff --git a/roles/config_repos/tasks/main.yml b/roles/config_repos/tasks/main.yml index 70a40ab99a8f6c2df368cccda41fb4d76a51b3ce..684c327aa9be6fb9c90f588bf44857f94794bfe7 100644 --- a/roles/config_repos/tasks/main.yml +++ b/roles/config_repos/tasks/main.yml @@ -33,7 +33,7 @@ # when: ansible_os_family == 'RedHat' and ansible_distribution_major_version == "7" - name: add our repos - copy: src={{ item }} dest=/etc/yum.repos.d/{{ item }} + template: src={{ item }}.j2 dest=/etc/yum.repos.d/{{ item }} become: true when: ansible_os_family == 'RedHat' and ansible_distribution_major_version == "7" with_items: @@ -55,7 +55,7 @@ with_items: "{{ repolist.stdout_lines|difference(yumenablerepo) }}" become: true become_user: root - ignore_errors: true + ignore_errors: false #- name: Enable epel diff --git a/roles/config_repos/templates/epel.repo b/roles/config_repos/templates/epel.repo index 053ed43c62542e860cdb16660bdab1918b90fd7d..4b1017bf11cd106d2f54fb47bc7accb2ab19b28b 100644 --- a/roles/config_repos/templates/epel.repo +++ b/roles/config_repos/templates/epel.repo @@ -2,7 +2,7 @@ [epel] name=Extra Packages for Enterprise Linux 7 - $basearch -baseurl=https://consistency0/epel/$releasever/$basearch/ +baseurl=https://{{ reposervername }}/epel/$releasever/$basearch/ enabled=0 gpgcheck=0 sslverify=false diff --git a/roles/config_repos/templates/monashhpc_base.repo b/roles/config_repos/templates/monashhpc_base.repo index dfbb0a77a5110c72150ecc7e0481368487e2abc4..0f0cd119928b6e6803e491a495ff625b9fc54cf9 100644 --- a/roles/config_repos/templates/monashhpc_base.repo +++ b/roles/config_repos/templates/monashhpc_base.repo @@ -2,24 +2,24 @@ [monashhpc_base] name=MonashHPC base repository mirrored to control the update process -baseurl=https://consistency0/centos/$releasever/os/$basearch/ +baseurl=https://{{ reposervername }}/centos/$releasever/os/$basearch/ enabled=1 sslverify=false [monashhpc_updates] name=MonashHPC base repository mirrored to control the update process -baseurl=https://consistency0/centos/$releasever/updates/$basearch/ +baseurl=https://{{ reposervername }}/centos/$releasever/updates/$basearch/ enabled=1 sslverify=false [monashhpc_extras] name=MonashHPC base repository mirrored to control the update process -baseurl=https://consistency0/centos/$releasever/extras/$basearch/ +baseurl=https://{{ reposervername }}/centos/$releasever/extras/$basearch/ enabled=1 sslverify=false [monashhpc_centosplus] name=MonashHPC base repository mirrored to control the update process -baseurl=https://consistency0/centos/$releasever/centosplus/$basearch/ +baseurl=https://{{ reposervername }}/centos/$releasever/centosplus/$basearch/ enabled=1 sslverify=false diff --git a/roles/config_repos/templates/monashhpc_others.repo b/roles/config_repos/templates/monashhpc_others.repo index e78702bf53f5fe0a1284c0474aac75bba615aabd..bd0b06270231095c8fa52cdffdb65f6b1f1202a7 100644 --- a/roles/config_repos/templates/monashhpc_others.repo +++ b/roles/config_repos/templates/monashhpc_others.repo @@ -2,7 +2,7 @@ [monashhpc_otherstuff] name=MonashHPC base repository mirrored to control the update process -baseurl=https://consistency0/centos/hpcsystems/$releasever/$basearch/ +baseurl=https://{{ reposervername }}/centos/hpcsystems/$releasever/$basearch/ enabled=1 sslverify=false gpgcheck=0