xtream1101.mattermost
Mattermost Ansible角色
该角色将在Ubuntu 18.04上安装Mattermost聊天服务器,并使用nginx作为代理。
支持通过Let's Encrypt证书的http或https。
配置为连接到未包含在该角色中的PostgreSQL数据库。
其他正在使用的角色
nginxinc.nginx
来源: https://galaxy.ansible.com/nginxinc/nginx
用作代理服务器
clutterbox.dehydrated
来源: https://galaxy.ansible.com/clutterbox/dehydrated
用于生成证书,如果变量mattermost_http_type
设置为https
示例剧本
使用外部数据库安装没有ssl的mattermost
---
- name: 创建一个Mattermost服务器
hosts: mattermost
become: true
vars:
mattermost_domain: "mattermost.example.com"
mattermost_http_type: "http"
mattermost_db_host: "某个主机/IP地址"
mattermost_db_name: "mattermost"
mattermost_db_user: "mmuser"
mattermost_db_pass: "secret"
roles:
- xtream1101.mattermost
在PostgreSQL数据库旁边安装Mattermost并使用Let's Encrypt证书
- name: 创建一个Mattermost服务器
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: [email protected]
dehydrated_challengetype: dns-01
dehydrated_lexicon_dns:
LEXICON_CLOUDFLARE_USERNAME: [email protected]
LEXICON_CLOUDFLARE_TOKEN: AHG87923...
dehydrated_domains: |
{{ mattermost_domain }}
roles:
- geerlingguy.postgresql
- xtream1101.mattermost
安装
ansible-galaxy install xtream1101.mattermost
许可证
mit
下载
163
拥有者