add external repos for koji
This commit is contained in:
parent
7189c12fb9
commit
34ffaebdcf
34
init-refresh-koji-external-repos.yml
Normal file
34
init-refresh-koji-external-repos.yml
Normal file
@ -0,0 +1,34 @@
|
||||
---
|
||||
- name: Update Koji External Repos
|
||||
hosts: all
|
||||
become: true
|
||||
vars_files:
|
||||
- "vars/common.yml"
|
||||
- "vars/koji.yml"
|
||||
- "vars/koji_repos.yml"
|
||||
pre_tasks:
|
||||
- name: Check if ansible cannot be run here
|
||||
ansible.builtin.stat:
|
||||
path: /etc/no-ansible
|
||||
register: no_ansible
|
||||
|
||||
- name: Verify if we can run ansible
|
||||
ansible.builtin.assert:
|
||||
that:
|
||||
- "not no_ansible.stat.exists"
|
||||
success_msg: "We are able to run on this node"
|
||||
fail_msg: "/etc/no-ansible exists - skipping run on this node"
|
||||
|
||||
tasks:
|
||||
- name: Ensure all external repos are in place
|
||||
import_tasks: "tasks/koji/setup_external_repos.yml"
|
||||
|
||||
post_tasks:
|
||||
- name: Touching run file that ansible has ran here
|
||||
ansible.builtin.file:
|
||||
path: /var/log/ansible.run
|
||||
state: touch
|
||||
mode: '0644'
|
||||
owner: root
|
||||
group: root
|
||||
...
|
8
tasks/koji/setup_external_repos.yml
Normal file
8
tasks/koji/setup_external_repos.yml
Normal file
@ -0,0 +1,8 @@
|
||||
---
|
||||
- name: Creating all external repos
|
||||
ktdreyer.koji_ansible.koji_tag:
|
||||
name: "{{ item.key }}"
|
||||
url: "{{ item.value }}"
|
||||
state: present
|
||||
loop: "{{ koji_external_repos | dict2items }}"
|
||||
...
|
13
vars/koji_repos.yml
Normal file
13
vars/koji_repos.yml
Normal file
@ -0,0 +1,13 @@
|
||||
---
|
||||
koji_external_repos:
|
||||
deppers-from-aoc: "https://router.angelsofclockwork.net/pub/deps/deppers/$arch/"
|
||||
dist-rocky8-build-repo: "https://kojidev.rockylinux.org/kojifiles/repos/dist-rocky8-build/latest/$arch/"
|
||||
distrobuild-internal-srpmproc-repo: "https://distrobuildstg.rockylinux.org/internal-repo/$arch/"
|
||||
louis-bootstrap-combo: "https://rocky.shootthej.net/src/combo/"
|
||||
louis-bootstrap-i686: "https://rocky.shootthej.net/src/reqs/"
|
||||
rocky8-build-3: "https://kojidev.rockylinux.org/kojifiles/repos/dist-rocky8-build/latest/$arch/"
|
||||
rocky8-build-lh-3: "https://kojidev.rockylinux.org/kojifiles/repos/dist-rocky8-lookahead-build/latest/$arch/"
|
||||
rocky8-build-prep: "https://kojidev.rockylinux.org/kojifiles/repos/dist-rocky8-prep-build/latest/$arch/"
|
||||
rocky8_3-updates-build-repo: "https://kojidev.rockylinux.org/kojifiles/repos/dist-rocky8_3-updates-build/latest/$arch/"
|
||||
rocky8_4-updates-build: "https://kojidev.rockylinux.org/kojifiles/repos/dist-rocky8_4-updates-build/latest/$arch/"
|
||||
...
|
Loading…
Reference in New Issue
Block a user