blob: 89005bdf635babe49bc8e426510ced32a1a4b0b6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
# Instance-specific configuration for the BuildStream Gitlab IRC bot
---
- hosts: webserver
vars_files:
- gitlabirced/gitlab_bot_secrets.yml
vars:
- gitlabirced_version: 0.4.0
- gitlabirced_conf_folder: /home/fedora/gitlabirced
- gitlabirced_conf_file: "{{ gitlabirced_conf_folder }}/config.yml"
tasks:
- name: Install gitlabirced from pip
pip:
name: gitlabirced
version: "{{ gitlabirced_version }}"
executable: pip3
extra_args: --user
- name: Create gitlabirced config folder
file:
path: "{{ gitlabirced_conf_folder }}"
state: directory
- name: Install bot configuration file
template:
src: gitlabirced/config.yml
dest: "{{ gitlabirced_conf_file }}"
- name: Install service for the bot
template:
src: gitlabirced/gitlabirced.service.in
dest: /etc/systemd/system/gitlabirced.service
become: yes
- name: Restart bot service
service:
name: gitlabirced
enabled: yes
state: restarted
daemon_reload: yes
become: yes
|