diff --git a/playbooks/roles/hosts.update/tasks/redhat.yml b/playbooks/roles/hosts.update/tasks/centos.yml similarity index 100% rename from playbooks/roles/hosts.update/tasks/redhat.yml rename to playbooks/roles/hosts.update/tasks/centos.yml diff --git a/playbooks/roles/hosts.update/tasks/centos8.yml b/playbooks/roles/hosts.update/tasks/centos8.yml new file mode 100644 index 00000000..358c5333 --- /dev/null +++ b/playbooks/roles/hosts.update/tasks/centos8.yml @@ -0,0 +1,10 @@ +--- +# https://github.com/samba-in-kubernetes/sit-environment/issues/102 +- name: Modify repositories to point at CentOS vault + shell: >- + find /etc/yum.repos.d/ -name '*.repo' -exec sed -i \ + -e 's|^mirrorlist=|#mirrorlist=|g' \ + -e 's|^#baseurl=http://mirror.centos.org|baseurl=https://vault.centos.org|g' {} \; + +- name: Process common OS tasks + include_tasks: centos.yml diff --git a/playbooks/roles/hosts.update/tasks/centos9.yml b/playbooks/roles/hosts.update/tasks/centos9.yml new file mode 100644 index 00000000..64498162 --- /dev/null +++ b/playbooks/roles/hosts.update/tasks/centos9.yml @@ -0,0 +1,3 @@ +--- +- name: Process common OS tasks + include_tasks: centos.yml