mirror of
https://src.koozali.org/infra/smeserver-koji.git
synced 2024-11-23 10:07:28 +01:00
49 lines
1.3 KiB
YAML
49 lines
1.3 KiB
YAML
---
|
|
- hosts: koji-all-in-one
|
|
tasks:
|
|
- name: Add required bundles for koji
|
|
swupd:
|
|
name: koji koji-hub koji-utils koji-web mod-ssl policycoreutils-python-utils 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 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
|
|
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-deploy-web.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
|