60
|
1 |
--- |
|
2 |
|
|
3 |
- name: setup python2 |
|
4 |
hosts: all |
|
5 |
gather_facts: no |
|
6 |
tasks: |
|
7 |
- name: install python2 |
|
8 |
become: yes |
|
9 |
raw: "apt-get install python -y" |
|
10 |
|
67
|
11 |
- name: set hostname in OS |
|
12 |
become: yes |
|
13 |
hostname: name="{{inventory_hostname}}" |
|
14 |
|
|
15 |
- name: change timezone to UTC |
|
16 |
become: yes |
|
17 |
timezone: name="UTC" |
|
18 |
|
|
19 |
- hosts: pleroma-01 |
60
|
20 |
roles: |
67
|
21 |
- role: pleroma |
|
22 |
pleroma_host: "haskell.social" |
|
23 |
pleroma_user: "pleroma_haskell_social" |
|
24 |
pleroma_port: 4000 |
|
25 |
|
|
26 |
- role: pleroma |
|
27 |
pleroma_host: "nth.io" |
|
28 |
pleroma_user: "pleroma_nth_io" |
|
29 |
pleroma_port: 4001 |
|
30 |
|
|
31 |
|
|
32 |
# - hosts: haskell.social |
|
33 |
# roles: |
|
34 |
# - nginx |
|
35 |
# - pleroma |
|
36 |
|
|
37 |
# - hosts: nth.io |
|
38 |
# roles: |
|
39 |
# - nginx |
|
40 |
# - pleroma |