2018-05-23 02:11:13 +00:00
|
|
|
- name: Set repo path
|
|
|
|
set_fact:
|
|
|
|
dib_gate_mirror_repos: "{{ ansible_user_dir }}/dib-mirror"
|
|
|
|
|
|
|
|
- debug: msg="zuul site mirror {{ zuul_site_mirror_fqdn }}"
|
|
|
|
- debug: msg="mirror_fqdn {{ mirror_fqdn }}"
|
|
|
|
|
2019-09-25 00:53:39 +00:00
|
|
|
- name: Create centos-minimal 7 directory
|
2018-05-23 02:11:13 +00:00
|
|
|
file:
|
2019-09-25 00:53:39 +00:00
|
|
|
path: "{{ dib_gate_mirror_repos }}/centos-minimal/7/yum.repos.d"
|
2018-05-23 02:11:13 +00:00
|
|
|
state: directory
|
|
|
|
mode: 0775
|
|
|
|
recurse: yes
|
|
|
|
|
2019-09-25 00:53:39 +00:00
|
|
|
- name: Install centos-minimal 7 repo files
|
2018-05-23 02:11:13 +00:00
|
|
|
template:
|
2019-09-25 00:53:39 +00:00
|
|
|
dest: "{{ dib_gate_mirror_repos }}/centos-minimal/7/yum.repos.d/dib-mirror-{{ item }}"
|
2018-05-23 02:11:13 +00:00
|
|
|
mode: 0644
|
2019-09-25 00:53:39 +00:00
|
|
|
src: "centos-minimal/7/{{ item }}.j2"
|
2018-05-23 02:11:13 +00:00
|
|
|
with_items:
|
|
|
|
- base.repo
|
|
|
|
- updates.repo
|
|
|
|
- extras.repo
|
2019-09-25 00:53:39 +00:00
|
|
|
|
2021-12-08 04:16:42 +00:00
|
|
|
- name: Create centos-minimal 8-stream directory
|
|
|
|
file:
|
|
|
|
path: "{{ dib_gate_mirror_repos }}/centos-minimal/8-stream/yum.repos.d"
|
|
|
|
state: directory
|
|
|
|
mode: 0775
|
|
|
|
recurse: yes
|
|
|
|
|
|
|
|
- name: Install centos-minimal 8-stream repo files
|
|
|
|
template:
|
|
|
|
dest: "{{ dib_gate_mirror_repos }}/centos-minimal/8-stream/yum.repos.d/dib-mirror-{{ item }}"
|
|
|
|
mode: 0644
|
|
|
|
src: "centos-minimal/8-stream/{{ item }}.j2"
|
|
|
|
with_items:
|
|
|
|
- base.repo
|
|
|
|
- appstream.repo
|
|
|
|
|
2021-09-28 10:35:15 +00:00
|
|
|
- name: Create centos-minimal 9-stream directory
|
|
|
|
file:
|
|
|
|
path: "{{ dib_gate_mirror_repos }}/centos-minimal/9-stream/yum.repos.d"
|
|
|
|
state: directory
|
|
|
|
mode: 0775
|
|
|
|
recurse: yes
|
|
|
|
|
|
|
|
- name: Install centos-minimal 9-stream repo files
|
|
|
|
template:
|
|
|
|
dest: "{{ dib_gate_mirror_repos }}/centos-minimal/9-stream/yum.repos.d/dib-mirror-{{ item }}"
|
|
|
|
mode: 0644
|
|
|
|
src: "centos-minimal/9-stream/{{ item }}.j2"
|
|
|
|
with_items:
|
|
|
|
- base.repo
|
|
|
|
- appstream.repo
|
|
|
|
|
2018-05-23 02:11:13 +00:00
|
|
|
- name: Create fedora-minimal directories
|
|
|
|
file:
|
|
|
|
path: "{{ dib_gate_mirror_repos }}/fedora-minimal/{{ item }}/yum.repos.d"
|
|
|
|
state: directory
|
|
|
|
mode: 0775
|
|
|
|
recurse: yes
|
2018-11-16 03:50:08 +00:00
|
|
|
# sometimes Fedora moves things and we need different versions; keep
|
|
|
|
# the loops for future use.
|
2018-05-23 02:11:13 +00:00
|
|
|
with_items:
|
|
|
|
- default
|
|
|
|
|
|
|
|
- name: Install fedora-minimal repo files
|
|
|
|
template:
|
|
|
|
dest: "{{ dib_gate_mirror_repos }}/fedora-minimal/{{ item[0] }}/yum.repos.d/dib-mirror-{{ item[1] }}"
|
|
|
|
mode: 0644
|
|
|
|
src: "fedora-minimal/{{ item[0] }}/{{ item[1] }}.j2"
|
|
|
|
with_nested:
|
2018-11-16 03:50:08 +00:00
|
|
|
- [ 'default' ]
|
2018-05-23 02:11:13 +00:00
|
|
|
- [ 'fedora.repo', 'fedora-updates.repo' ]
|
2021-04-01 02:13:12 +00:00
|
|
|
|
|
|
|
- name: Create openeuler-minimal 20.03-LTS-SP2 directory
|
|
|
|
file:
|
|
|
|
path: "{{ dib_gate_mirror_repos }}/openeuler-minimal/20.03-LTS-SP2/yum.repos.d"
|
|
|
|
state: directory
|
|
|
|
mode: 0775
|
|
|
|
recurse: yes
|
|
|
|
|
|
|
|
- name: Install openeuler-minimal 20.03-LTS-SP2 repo files
|
|
|
|
template:
|
|
|
|
dest: "{{ dib_gate_mirror_repos }}/openeuler-minimal/20.03-LTS-SP2/yum.repos.d/dib-mirror-{{ item }}"
|
|
|
|
mode: 0644
|
|
|
|
src: "openeuler-minimal/20.03-LTS-SP2/{{ item }}.j2"
|
|
|
|
with_items:
|
|
|
|
- openEuler.repo
|