Files
fedora-infra_ansible/roles/fedmsg/irc/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

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