mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-04-27 20:12:54 +08:00
28 lines
1.0 KiB
YAML
28 lines
1.0 KiB
YAML
---
|
|
- name: start httpd (provided in the apache role)
|
|
service: name=httpd state=started
|
|
|
|
- name: ensure packages required for buildmaster are installed (dnf)
|
|
dnf: name={{ item }} state=present enablerepo={{ extra_enablerepos }}
|
|
with_items:
|
|
- tmpwatch
|
|
when: ansible_distribution_major_version|int > 21 and ansible_cmdline.ostree is not defined
|
|
|
|
- name: create artifacts directory
|
|
file: path={{ item }} state=directory owner=buildmaster group=buildmaster mode=0775 setype=httpd_sys_content_t
|
|
with_items:
|
|
- /srv/taskotron
|
|
- /srv/taskotron/artifacts
|
|
|
|
- name: copy artifacts httpd config
|
|
template: src=artifacts.conf.j2 dest=/etc/httpd/conf.d/artifacts.conf owner=root group=root
|
|
notify:
|
|
- reload httpd
|
|
|
|
- name: allow httpd to read artifacts on nfs
|
|
seboolean: name=httpd_use_nfs state=yes persistent=yes
|
|
when: deployment_type in ['stg', 'prod']
|
|
|
|
- name: copy cronjob for cleaning old taskotron artifacts and buildmaster logs
|
|
template: src=taskotron-clean.cron.j2 dest=/etc/cron.d/taskotron-clean.cron owner=root group=root mode=0644
|