2023-08-28 06:44:38 +02:00
|
|
|
---
|
|
|
|
- hosts: koji-all-in-one
|
|
|
|
tasks:
|
|
|
|
- name: Add required bundles for koji
|
|
|
|
swupd:
|
2023-11-19 02:21:54 +01:00
|
|
|
name: koji koji-hub koji-utils koji-web mod-ssl policycoreutils-python-utils postgresql web-server-basic
|
2023-08-28 06:44:38 +02:00
|
|
|
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
|
2023-09-11 09:14:43 +02:00
|
|
|
- name: update deploy koji web file permissions
|
|
|
|
file:
|
|
|
|
path: /tmp/koji-setup/koji-deploy-web.sh
|
|
|
|
mode: 0755
|
2023-09-04 11:08:38 +02:00
|
|
|
- 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
|
2023-09-11 09:14:43 +02:00
|
|
|
./koji-deploy-web.sh
|
2023-09-04 11:08:38 +02:00
|
|
|
./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
|