blob: f2c982d6d3acbfe5dbb6b964ac227385080f68bc (
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
---
- name: add oragono user
become: yes
user: name="oragono"
- name: download oragono
become: yes
unarchive:
remote_src: yes
src: "{{oragono_url}}"
dest: "/tmp"
creates: "/tmp/{{oragono_tar_name}}/"
- name: install oragono
become: yes
copy:
src: "/tmp/{{oragono_tar_name}}/oragono"
dest: "/usr/local/bin/"
remote_src: yes
owner: "root"
group: "root"
mode: "0755"
notify: restart oragono
- name: create oragono dirs
become: yes
file:
path: "{{item}}/oragono"
owner: "oragono"
group: "oragono"
mode: "0755"
state: "directory"
loop:
- "/etc"
- "/var"
- name: configure oragono
become: yes
template:
src: "oragono.yaml.j2"
dest: "/etc/oragono/oragono.yaml"
owner: "oragono"
group: "oragono"
mode: "0644"
notify: reload oragono
- name: copy motd file
become: yes
copy:
src: "{{oragono_motd}}"
dest: "/etc/oragono/oragono.motd"
notify: reload oragono
- name: install oragono service
become: yes
copy:
src: "oragono.service"
dest: "/lib/systemd/system/oragono.service"
mode: "0644"
notify: restart oragono
- name: ensure oragono is started
become: yes
systemd: service="oragono.service" enabled="yes" state="started" daemon_reload="yes"
|