mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-03-20 03:57:02 +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>
50 lines
1.0 KiB
YAML
50 lines
1.0 KiB
YAML
---
|
|
- name: Install package for fedmsg-irc
|
|
ansible.builtin.package:
|
|
state: present
|
|
name:
|
|
- python2-fedmsg-meta-fedora-infrastructure
|
|
- fedmsg-irc
|
|
- python-twisted-words
|
|
tags:
|
|
- packages
|
|
- fedmsg/irc
|
|
|
|
- name: Ensure that nrpe has rights to monitor us
|
|
ansible.builtin.file: >
|
|
dest=/var/run/fedmsg/monitoring-fedmsg-irc.socket
|
|
mode=0775
|
|
owner=fedmsg
|
|
group=nrpe
|
|
state=file
|
|
ignore_errors: true
|
|
tags:
|
|
- fedmsgmonitor
|
|
|
|
- name: Setup fedmsg-irc config file
|
|
ansible.builtin.template: src=ircbot.py dest=/etc/fedmsg.d/ircbot.py
|
|
tags:
|
|
- config
|
|
- fedmsg/irc
|
|
notify:
|
|
- Restart fedmsg-irc
|
|
|
|
- name: Setup fas credentials config file
|
|
ansible.builtin.template: >
|
|
src=fas-credentials.py
|
|
dest=/etc/fedmsg.d/fas-credentials.py
|
|
mode=0640
|
|
owner=fedmsg
|
|
group=fedmsg
|
|
tags:
|
|
- config
|
|
- fedmsg/irc
|
|
notify:
|
|
- Restart fedmsg-irc
|
|
|
|
- name: Enable on boot and start fedmsg-irc
|
|
service: name=fedmsg-irc state=started enabled=true
|
|
tags:
|
|
- services
|
|
- fedmsg/irc
|