mirror of
https://src.koozali.org/infra/smeserver-koji.git
synced 2024-11-25 02:57:28 +01:00
39 lines
941 B
YAML
39 lines
941 B
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/bootstrap-build.sh
|
||
|
mode: 0755
|
||
|
- name: update deploy-koji file permissions
|
||
|
file:
|
||
|
path: /tmp/koji-setup/deploy-koji.sh
|
||
|
mode: 0755
|
||
|
- name: update gencert file permissions
|
||
|
file:
|
||
|
path: /tmp/koji-setup/gencert.sh
|
||
|
mode: 0755
|
||
|
- name: run koji deployment
|
||
|
command:
|
||
|
./deploy-koji.sh
|
||
|
become: true
|
||
|
args:
|
||
|
chdir: /tmp/koji-setup
|
||
|
- name: bootstrap build tags and targets
|
||
|
command:
|
||
|
./bootstrap-build.sh
|
||
|
become: true
|
||
|
args:
|
||
|
chdir: /tmp/koji-setup
|