1
1
mirror of https://gitlab.archlinux.org/archlinux/infrastructure.git synced 2025-01-18 08:06:16 +01:00
infrastructure/roles/bugbot/tasks/main.yml
Leonidas Spyropoulos 00a79115d7
Replace deprecated git gpg_allowlist to gpg_whitelist
Signed-off-by: Leonidas Spyropoulos <artafinde@archlinux.org>
2024-09-15 12:47:29 +03:00

27 lines
936 B
YAML

- name: Install bugbot utilities
pacman: name=python-irc,python-beautifulsoup4,python-lxml state=present
- name: Receive valid signing keys
command: /usr/bin/gpg --keyserver keys.openpgp.org --auto-key-locate wkd,keyserver --locate-keys {{ item }}
with_items: '{{ bugbot_pgp_emails }}'
register: gpg
changed_when: "gpg.rc == 0"
- name: Clone bugbot source
git:
repo: https://gitlab.archlinux.org/archlinux/bugbot.git
dest: /srv/bugbot
force: true
verify_commit: true
gpg_whitelist: '{{ bugbot_pgp_keys }}'
version: '{{ bugbot_version }}'
- name: Install env file
template: src=bugbot.j2 dest=/srv/bugbot/env owner=root group=root mode=0600
- name: Install bugbot systemd service
copy: src=bugbot.service dest=/etc/systemd/system/bugbot.service owner=root group=root mode=0644
- name: Start and enable bugbot service
systemd: name=bugbot.service enabled=yes state=started daemon_reload=yes