mirror of
https://src.koozali.org/infra/smeserver-koji.git
synced 2024-12-22 23:47:00 +01:00
44 lines
1.1 KiB
YAML
44 lines
1.1 KiB
YAML
---
|
|
- 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
|
|
mode: 0755
|
|
- name: update deploy koji hub file permissions
|
|
file:
|
|
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
|
|
mode: 0755
|
|
- name: update gencert file permissions
|
|
file:
|
|
path: /tmp/koji-setup/koji-gencert.sh
|
|
mode: 0755
|
|
- name: run koji deployment
|
|
command:
|
|
./koji-deploy-hub.sh
|
|
./koji-add-builder.sh
|
|
become: true
|
|
args:
|
|
chdir: /tmp/koji-setup
|
|
- name: bootstrap build tags and targets
|
|
command:
|
|
./koji-bootstrap-build.sh
|
|
become: true
|
|
args:
|
|
chdir: /tmp/koji-setup
|