mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-05-01 22:11:01 +08:00
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>
47 lines
1.1 KiB
YAML
47 lines
1.1 KiB
YAML
# This is a *very* simple role. The config needed for fedmsg-relay to operate
|
|
# correctly is actually included as part of the fedmsg/base role.
|
|
|
|
---
|
|
- name: Install fedmsg-relay (yum)
|
|
ansible.builtin.package: name=fedmsg-relay state=present
|
|
tags:
|
|
- packages
|
|
- fedmsg/relay
|
|
when: ansible_distribution_major_version|int < 22
|
|
|
|
- name: Install fedmsg-relay (dnf)
|
|
dnf: pkg=fedmsg-relay state=present
|
|
tags:
|
|
- packages
|
|
- fedmsg/relay
|
|
when: ansible_distribution_major_version|int > 21
|
|
|
|
- name: Ensure that nrpe has rights to monitor us
|
|
ansible.builtin.file: >
|
|
dest=/var/run/fedmsg/monitoring-fedmsg-relay.socket
|
|
mode=0775
|
|
owner=fedmsg
|
|
group=nrpe
|
|
state=file
|
|
ignore_errors: true
|
|
tags:
|
|
- fedmsgmonitor
|
|
|
|
- name: Enable on boot and start fedmsg-relay
|
|
service: name=fedmsg-relay state=started enabled=true
|
|
tags:
|
|
- services
|
|
- fedmsg/relay
|
|
notify:
|
|
- Restart fedmsg-relay
|
|
when: env != "staging"
|
|
|
|
- name: Enable on boot and start fedmsg-relay
|
|
service: name=fedmsg-relay state=stopped enabled=false
|
|
tags:
|
|
- services
|
|
- fedmsg/relay
|
|
notify:
|
|
- Restart fedmsg-relay
|
|
when: env == "staging"
|