https://github.com/xtream1101/ansible-mattermost
Use ansible to install a mattermost chat server
https://github.com/xtream1101/ansible-mattermost
Last synced: 4 months ago
JSON representation
Use ansible to install a mattermost chat server
- Host: GitHub
- URL: https://github.com/xtream1101/ansible-mattermost
- Owner: xtream1101
- License: mit
- Created: 2020-04-24T00:59:53.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-10-14T12:49:49.000Z (almost 6 years ago)
- Last Synced: 2025-01-18T09:40:16.889Z (over 1 year ago)
- Language: HTML
- Size: 9.77 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Mattermost Ansible Role
This role will install a Mattermost chat server on Ubuntu 18.04 with a nginx proxy.
Supports http or https via a lets encrypt cert.
Is configured to connect to a postgresql database which is not included in this role.
## Other Roles being used
### **nginxinc.nginx**
Source: https://galaxy.ansible.com/nginxinc/nginx
Used as the proxy server
### **clutterbox.dehydrated**
Source: https://galaxy.ansible.com/clutterbox/dehydrated
Used to generate the certs if the var `mattermost_http_type` is set to `https`
## Example playbooks
Install mattermost with no ssl using an external db
```yaml
---
- name: Create a mattermost server
hosts: mattermost
become: true
vars:
mattermost_domain: "mattermost.example.com"
mattermost_http_type: "http"
mattermost_db_host: "SOME_HOST/IP_HERE"
mattermost_db_name: "mattermost"
mattermost_db_user: "mmuser"
mattermost_db_pass: "secret"
roles:
- xtream1101.mattermost
```
Install mattermost alongside a postgres db and use letsencrypt certs
```yaml
- name: Create a mattermost server
hosts: mattermost
become: true
vars:
mattermost_domain: "mattermost.example.com"
mattermost_http_type: "https"
mattermost_db_name: "mattermost"
mattermost_db_user: "mmuser"
mattermost_db_pass: "secret"
postgresql_databases:
- name: "{{ mattermost_db_name }}"
postgresql_users:
- name: "{{ mattermost_db_user }}"
password: "{{ mattermost_db_pass }}"
dehydrated_accept_letsencrypt_terms: yes
dehydrated_contactemail: your@email.com
dehydrated_challengetype: dns-01
dehydrated_lexicon_dns:
LEXICON_CLOUDFLARE_USERNAME: your@email.com
LEXICON_CLOUDFLARE_TOKEN: AHG87923...
dehydrated_domains: |
{{ mattermost_domain }}
roles:
- geerlingguy.postgresql
- xtream1101.mattermost
```