Files
fedora-infra_ansible/roles/testcase_stats/tasks/main.yml
Michal Konecny 2ec055db6f Use first uppercase letter for all handlers
This will unify all the handlers to use first uppercase letter for
ansible-lint to stop complaining.

I went through all `notify:` occurrences and fixed them by running
```
set TEXT "text_to_replace"; set REPLACEMENT "replacement_text"; git grep
-rlz "$TEXT" . | xargs -0 sed -i "s/$TEXT/$REPLACEMENT/g"
```

Then I went through all the changes and removed the ones that wasn't
expected to be changed.

Fixes https://pagure.io/fedora-infrastructure/issue/12391

Signed-off-by: Michal Konecny <mkonecny@redhat.com>
2025-02-10 20:31:49 +00:00

41 lines
1.6 KiB
YAML

# This role installs relval (if needed) and deploys a cron drop-in to
# run `relval testcase-stats` for the next Fedora release once an hour
# and dump the output to a configured location. It also drops an httpd
# config snippet to enable directory indexing and override proxying
# for the location on openQA servers (like the one we expect this role
# to be deployed on). It doesn't actually configure the server to serve
# the directory out - we're currently relying on the openQA Apache
# config to do that, if this role gets split out from the openQA server
# we would need to change that.
# Required vars
# - testcase_stats_output_dir
## string - Directory where the output should be written.
# - FedoraCycleNumber
## int - the current Fedora release number. Report will be
## produced for the release *after* this one.
# We seem to need this to get FedoraCycleNumber in Fedora infra. If
# you're running this role elsewhere, make your own arrangements
---
- name: Include vars
include_vars: dir=/srv/web/infra/ansible/vars/all/ ignore_files=README
when: "deployment_type is defined"
- name: Install required packages
ansible.builtin.package:
name: relval
state: present
tags:
- packages
- name: Deploy the cronjob
ansible.builtin.template: src=testcase_stats.cron dest=/etc/cron.hourly/testcase_stats owner=root group=root mode=0755
- name: Set up Apache config
ansible.builtin.copy: src=testcase_stats.conf.httpd dest=/etc/httpd/conf.d/01-testcase_stats.conf owner=root group=root mode=0644
notify:
- Reload httpd
tags:
- config