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

86 lines
2.0 KiB
YAML

---
# Configuration for the tahrir webapp
- name: Install needed packages
ansible.builtin.package: name={{ item }} state=present
with_items:
- github2fedmsg
- python-psycopg2
- python-memcached
- libsemanage-python
tags:
- packages
- github2fedmsg
- name: Make some directories
ansible.builtin.file: dest="{{item}}" mode=0755 state=directory
with_items:
- /etc/github2fedmsg
- /usr/share/github2fedmsg
tags:
- github2fedmsg
- name: Copy github2fedmsg app configuration
ansible.builtin.template: >
src={{ item }} dest="/etc/github2fedmsg/{{ item }}"
owner=apache group=apache mode=0600
with_items:
- github2fedmsg.ini
tags:
- config
- github2fedmsg
notify:
- Restart apache
- name: Copy github2fedmsg wsgi script
ansible.builtin.copy: >
src={{ item }} dest="/usr/share/github2fedmsg/{{ item }}"
owner=apache group=apache mode=0644
with_items:
- github2fedmsg.wsgi
tags:
- config
- github2fedmsg
notify:
- Restart apache
- name: Copy github2fedmsg httpd config
ansible.builtin.template: >
src={{ item }} dest="/etc/httpd/conf.d/{{ item }}"
owner=apache group=apache mode=0644
with_items:
- github2fedmsg.conf
tags:
- config
- github2fedmsg
notify:
- Restart apache
- name: Hotfix - allow velruse to do stateless openid
ansible.builtin.copy: >
src=openid.py
dest=/usr/lib/python2.7/site-packages/velruse/providers/openid.py
owner=root group=root mode=0644
tags:
- hotfix
- github2fedmsg
notify:
- Restart apache
# Fix for https://pagure.io/fedora-infrastructure/issue/11776
- name: Hotfix - Fix the KeyError when looking for user in github event
ansible.posix.patch:
src: 11776.patch
dest: /usr/lib/python2.7/site-packages/github2fedmsg/views/webhooks.py
tags:
- hotfix
- github2fedmsg
notify:
- Restart apache
- name: Ensure selinux lets httpd talk to postgres
seboolean: name=httpd_can_network_connect_db persistent=yes state=yes
tags:
- selinux
- github2fedmsg