|
64 | 64 | state: absent |
65 | 65 | keepcache: false |
66 | 66 | loop: |
67 | | - - ubi-9-appstream |
68 | | - - ubi-9-baseos |
69 | | - - ubi-9-codeready-builder |
| 67 | + - ubi-9-appstream-rpms |
| 68 | + - ubi-9-baseos-rpms |
| 69 | + - ubi-9-codeready-builder-rpms |
70 | 70 |
|
71 | | -- name: Block for tripleo-repos |
| 71 | +- name: Block for repo-setup |
72 | 72 | become: true |
73 | 73 | when: |
74 | 74 | - (ansible_facts['os_family'] | lower) == 'redhat' |
75 | 75 | block: |
76 | 76 | - name: Fetch latest repo version |
77 | 77 | ansible.builtin.uri: |
78 | | - url: https://trunk.rdoproject.org/centos{{ ansible_facts['distribution_major_version'] }}/current-tripleo/delorean.repo |
| 78 | + url: https://trunk.rdoproject.org/centos{{ ansible_facts['distribution_major_version'] }}/current-podified/delorean.repo |
79 | 79 | return_content: true |
80 | 80 | register: edpm_packages |
81 | 81 |
|
|
85 | 85 | dest: /etc/yum.repos.d/delorean.repo |
86 | 86 | mode: 0644 |
87 | 87 |
|
88 | | -- name: Install tripleo-repos package |
| 88 | +- name: Install repo-setup pre-requirements |
89 | 89 | become: true |
90 | 90 | ansible.builtin.package: |
91 | | - name: "python*tripleo-repos" |
| 91 | + name: |
| 92 | + - git |
| 93 | + - python3-pip |
92 | 94 | state: present |
93 | 95 |
|
94 | | -- name: Tripleo setup block |
| 96 | +- name: Repo setup block |
95 | 97 | become: true |
96 | 98 | when: |
97 | 99 | - (ansible_facts['os_family'] | lower) == 'redhat' |
98 | 100 | - test_deps_setup_edpm | bool |
99 | 101 | block: |
100 | | - - name: Create tripleo repos |
101 | | - ansible.builtin.command: tripleo-repos -d ubi9 {{ test_deps_setup_stream | ternary('--stream', '--no-stream', omit) }} \ |
102 | | - -b master current-tripleo {{ test_deps_setup_ceph | ternary('ceph', '', omit) }} |
| 102 | + - name: Get repo-setup repository # noqa: latest[git] |
| 103 | + ansible.builtin.git: |
| 104 | + accept_hostkey: true |
| 105 | + dest: "/tmp/repo-setup" |
| 106 | + repo: "https://github.com/openstack-k8s-operators/repo-setup" |
| 107 | + |
| 108 | + - name: Install repo-setup |
| 109 | + ansible.builtin.shell: | |
| 110 | + set -eux |
| 111 | + cd /tmp/repo-setup |
| 112 | + pip install -r requirements.txt |
| 113 | + python3 setup.py install |
| 114 | +
|
| 115 | + - name: Create repos |
| 116 | + ansible.builtin.command: /usr/local/bin/repo-setup -d ubi9 {{ test_deps_setup_stream | ternary('--stream', '--no-stream', omit) }} \ |
| 117 | + -b master current-podified {{ test_deps_setup_ceph | ternary('ceph', '', omit) }} |
103 | 118 |
|
104 | 119 | - name: Look for redhat-release rpm |
105 | 120 | ansible.builtin.shell: | |
|
0 commit comments