File: main.yaml

package info (click to toggle)
python-diskimage-builder 3.39.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,704 kB
  • sloc: sh: 7,474; python: 6,454; makefile: 37
file content (53 lines) | stat: -rw-r--r-- 1,599 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
- 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 }}"

- 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

- 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

- name: Create openeuler-minimal 22.03-LTS directory
  file:
    path: "{{ dib_gate_mirror_repos }}/openeuler-minimal/22.03-LTS/yum.repos.d"
    state: directory
    mode: 0775
    recurse: yes

- name: Install openeuler-minimal 22.03-LTS repo files
  template:
    dest: "{{ dib_gate_mirror_repos }}/openeuler-minimal/22.03-LTS/yum.repos.d/dib-mirror-{{ item }}"
    mode: 0644
    src: "openeuler-minimal/22.03-LTS/{{ item }}.j2"
  with_items:
    - openEuler.repo