ansible-role-kojihub/tasks/main.yml

68 lines
1.3 KiB
YAML
Raw Normal View History

2020-12-18 22:56:25 +00:00
---
2020-12-23 03:52:59 +00:00
# Koji hub and web installation
# This is not for builder nodes
- name: Apply required SELinux booleans
import_tasks: selinux_boolean.yml
2020-12-23 09:56:55 +00:00
- name: Ensure Storage is ready
import_tasks: storage.yml
2020-12-23 03:52:59 +00:00
- name: Install required packages
yum:
2020-12-23 11:27:08 +00:00
name: "{{ koji_hub_packages }}"
2020-12-23 03:52:59 +00:00
state: present
- name: Configure koji database
import_tasks: db.yml
2020-12-23 09:12:56 +00:00
- name: Configure local koji admin
import_tasks: koji-admin-local.yml
2020-12-23 18:40:29 +00:00
when: koji_admin_client
2020-12-23 03:52:59 +00:00
- name: Configure plugins
import_tasks: plugins.yml
when: koji_hub_plugins
- name: Configure kojihub and web
template:
src: "{{ item }}.j2"
dest: "/{{ item }}"
mode: '0644'
2020-12-23 09:12:56 +00:00
owner: root
group: root
2020-12-23 03:52:59 +00:00
with_items:
- etc/koji-hub/hub.conf
- etc/kojiweb/web.conf
notify:
- restart_httpd
2020-12-23 09:12:56 +00:00
- name: Configure kojira
import_tasks: kojira.yml
2020-12-23 03:52:59 +00:00
- name: Configure httpd for hub and web
template:
src: "etc/httpd/conf.d/{{ item }}.j2"
dest: "/etc/httpd/conf.d/{{ item }}"
mode: '0644'
2020-12-23 09:12:56 +00:00
owner: root
group: root
2020-12-23 03:52:59 +00:00
with_items:
- kojihub.conf
- kojiweb.conf
notify:
- restart_httpd
- name: Deploy custom theme for koji
unarchive:
src: "{{ koji_theme_file }}"
dest: /
when: koji_theme
2020-12-23 09:12:56 +00:00
- name: Configure garbage collector
import_tasks: koji-gc.yml
2020-12-23 03:52:59 +00:00
- name: User Sync from FAS
import_tasks: user-sync.yml
when: koji_fas_sync