author | Luke Hoersten <luke@hoersten.org> |
Fri, 11 Dec 2020 07:08:41 -0600 | |
changeset 147 | 83e9097520a0 |
parent 137 | 645c1e109921 |
permissions | -rw-r--r-- |
114 | 1 |
--- |
2 |
||
3 |
- name: add oragono user |
|
4 |
become: yes |
|
5 |
user: name="oragono" |
|
6 |
||
7 |
- name: download oragono |
|
8 |
become: yes |
|
9 |
unarchive: |
|
10 |
remote_src: yes |
|
11 |
src: "{{oragono_url}}" |
|
12 |
dest: "/tmp" |
|
13 |
creates: "/tmp/{{oragono_tar_name}}/" |
|
14 |
||
15 |
- name: install oragono |
|
16 |
become: yes |
|
17 |
copy: |
|
18 |
src: "/tmp/{{oragono_tar_name}}/oragono" |
|
19 |
dest: "/usr/local/bin/" |
|
20 |
remote_src: yes |
|
21 |
owner: "root" |
|
22 |
group: "root" |
|
23 |
mode: "0755" |
|
24 |
notify: restart oragono |
|
25 |
||
26 |
- name: create oragono dirs |
|
27 |
become: yes |
|
28 |
file: |
|
29 |
path: "{{item}}/oragono" |
|
30 |
owner: "oragono" |
|
31 |
group: "oragono" |
|
32 |
mode: "0755" |
|
33 |
state: "directory" |
|
34 |
loop: |
|
35 |
- "/etc" |
|
36 |
- "/var" |
|
37 |
||
38 |
- name: configure oragono |
|
39 |
become: yes |
|
40 |
template: |
|
41 |
src: "oragono.yaml.j2" |
|
42 |
dest: "/etc/oragono/oragono.yaml" |
|
43 |
owner: "oragono" |
|
44 |
group: "oragono" |
|
45 |
mode: "0644" |
|
118
56bffa9ef826
Added nginx and oragono HUP reloading to systemd handlers. Added nginx config.
Luke Hoersten <luke@hoersten.org>
parents:
114
diff
changeset
|
46 |
notify: reload oragono |
114 | 47 |
|
48 |
- name: copy motd file |
|
49 |
become: yes |
|
50 |
copy: |
|
51 |
src: "{{oragono_motd}}" |
|
52 |
dest: "/etc/oragono/oragono.motd" |
|
118
56bffa9ef826
Added nginx and oragono HUP reloading to systemd handlers. Added nginx config.
Luke Hoersten <luke@hoersten.org>
parents:
114
diff
changeset
|
53 |
notify: reload oragono |
114 | 54 |
|
55 |
- name: install oragono service |
|
56 |
become: yes |
|
137
645c1e109921
Moved oragono socket to more persistent location.
Luke Hoersten <luke@hoersten.org>
parents:
118
diff
changeset
|
57 |
copy: |
645c1e109921
Moved oragono socket to more persistent location.
Luke Hoersten <luke@hoersten.org>
parents:
118
diff
changeset
|
58 |
src: "oragono.service" |
114 | 59 |
dest: "/lib/systemd/system/oragono.service" |
60 |
mode: "0644" |
|
61 |
notify: restart oragono |
|
62 |
||
63 |
- name: ensure oragono is started |
|
64 |
become: yes |
|
65 |
systemd: service="oragono.service" enabled="yes" state="started" daemon_reload="yes" |