smeserver-koji/koji.yaml

49 lines
1.2 KiB
YAML
Raw Normal View History

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:
path: /tmp/koji-setup/koji-bootstrap-build.sh
2023-08-28 06:44:38 +02:00
mode: 0755
- name: update deploy koji hub file permissions
2023-08-28 06:44:38 +02:00
file:
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
- 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:
path: /tmp/koji-setup/koji-gencert.sh
2023-08-28 06:44:38 +02:00
mode: 0755
- name: run koji deployment
command:
./koji-deploy-hub.sh
2023-09-11 09:14:43 +02:00
./koji-deploy-web.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:
./koji-bootstrap-build.sh
2023-08-28 06:44:38 +02:00
become: true
args:
chdir: /tmp/koji-setup