2023-08-28 06:44:38 +02:00
|
|
|
---
|
|
|
|
- hosts: koji-all-in-one
|
|
|
|
tasks:
|
|
|
|
- name: Add required bundles for koji
|
|
|
|
swupd:
|
|
|
|
name: koji postgresql web-server-basic
|
|
|
|
state: present
|
|
|
|
become: true
|
|
|
|
- name: copy koji-setup scripts
|
|
|
|
copy:
|
|
|
|
src: koji-setup
|
|
|
|
dest: /tmp/
|
|
|
|
owner: "{{ ansible_ssh_user }}"
|
|
|
|
group: "{{ ansible_ssh_user }}"
|
|
|
|
- name: update bootstrap-build file permissions
|
|
|
|
file:
|
2023-09-04 11:08:38 +02:00
|
|
|
path: /tmp/koji-setup/koji-bootstrap-build.sh
|
2023-08-28 06:44:38 +02:00
|
|
|
mode: 0755
|
2023-09-04 11:08:38 +02:00
|
|
|
- name: update deploy koji hub file permissions
|
2023-08-28 06:44:38 +02:00
|
|
|
file:
|
2023-09-04 11:08:38 +02:00
|
|
|
path: /tmp/koji-setup/koji-deploy-hub.sh
|
|
|
|
mode: 0755
|
|
|
|
- name: update add koji builder file permissions
|
|
|
|
file:
|
|
|
|
path: /tmp/koji-setup/koji-add-builder.sh
|
2023-08-28 06:44:38 +02:00
|
|
|
mode: 0755
|
|
|
|
- name: update gencert file permissions
|
|
|
|
file:
|
2023-09-04 11:08:38 +02:00
|
|
|
path: /tmp/koji-setup/koji-gencert.sh
|
2023-08-28 06:44:38 +02:00
|
|
|
mode: 0755
|
|
|
|
- name: run koji deployment
|
|
|
|
command:
|
2023-09-04 11:08:38 +02:00
|
|
|
./koji-deploy-hub.sh
|
|
|
|
./koji-add-builder.sh
|
2023-08-28 06:44:38 +02:00
|
|
|
become: true
|
|
|
|
args:
|
|
|
|
chdir: /tmp/koji-setup
|
|
|
|
- name: bootstrap build tags and targets
|
|
|
|
command:
|
2023-09-04 11:08:38 +02:00
|
|
|
./koji-bootstrap-build.sh
|
2023-08-28 06:44:38 +02:00
|
|
|
become: true
|
|
|
|
args:
|
|
|
|
chdir: /tmp/koji-setup
|