-
Notifications
You must be signed in to change notification settings - Fork 78
/
play.yml
executable file
·42 lines (34 loc) · 1.14 KB
/
play.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
---
# Define the host you want to run the playbook in a file called hosts
# run "ansible-playbook play.yml -i hosts" from this directory
- hosts: all
remote_user: root
become: yes
gather_facts: no
pre_tasks:
- name: Install python
raw: test -e /usr/bin/python || (apt -y update && apt install -y python-minimal)
changed_when: false
- name: Gather Facts
setup:
vars:
mattermost_version: 4.3.2
postgres_version: 9.4
# The user the mattermost process will run as. The group will match.
mattermost_user: mattermost
# These do not need to be edited.
db_user: mmmost
db_name: mattermost
# Choose a secure password. It is recommended you create a random password using
# an external utility.
db_password: notReallyPassword
# This is the email address you want to be attached to the letsencrypt certificate. It should be valid.
cert_email_address: [email protected]
# This is the domain name to be used for letsencrypt. Be sure to point this at the host you're deploying to.
mattermost_fqdn: mm.mydomain.com
roles:
- postgres
- mattermost
- letsencrypt
- nginx
- cron