forked from jamielinux/ansible-discourse
-
Notifications
You must be signed in to change notification settings - Fork 0
/
migrate-9.3-to-9.4.yml
50 lines (36 loc) · 930 Bytes
/
migrate-9.3-to-9.4.yml
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
---
- name: "stop Nginx and Unicorn"
hosts: "discourse"
sudo: True
gather_facts: True
tasks:
- name: "stop services"
service:
name: "{{ item }}"
state: "stopped"
with_items:
- "nginx.service"
- "discourse-unicorn.service"
- name: "migrate postgres to new major version"
hosts: "postgres"
sudo: True
gather_facts: True
roles:
- role: "migrate-9.3-to-9.4"
- name: "install new postgres client and rebuild pg gem"
hosts: "discourse"
sudo: True
gather_facts: True
roles:
- role: "gem-uninstall-pg"
tags: ["gem-uninstall-pg"]
- role: "discourse"
tags: ["discourse"]
- role: "nginx-discourse"
tags: ["nginx-discourse"]
- role: "opendkim"
tags: ["opendkim"]
when: discourse_smtp_address == 'localhost' and dkim_enabled
- role: "postfix"
tags: ["postfix"]
when: discourse_smtp_address == 'localhost'