blob: 396ac8a75b216c6ce5540d0271c6206c496c380a (
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: paste
vars_files:
- gitlab_buildstream_secret.yml
vars:
- gitlab_to_irc_url: https://gitlab.com/palvarez89/gitlab-to-irc
- gitlab_to_irc_branch: master
- gitlab_to_irc_install_location: /home/ubuntu/gitlab-to-irc
tasks:
- name: Download gitlab-to-irc sources
git:
repo: "{{ gitlab_to_irc_url }}"
version: "{{ gitlab_to_irc_branch }}"
dest: "{{ gitlab_to_irc_install_location }}"
- name: Update packages based on package.json to their latest version.
npm:
path: "{{ gitlab_to_irc_install_location }}"
state: latest
- name: Install bot configuration file
template:
src: config.js
dest: "{{ gitlab_to_irc_install_location }}/config.js"
- name: Install service for the bot
template:
src: gitlab-bst-bot.conf
dest: /etc/init/gitlab-bst-bot.conf
become: yes
- name: Restart bot service
service:
name: gitlab-bst-bot
enabled: yes
state: restarted
become: yes
|