This role automates the process of installing single-server Zimbra Open Source Edition v8.8.15 and v9.0.0 on CentOS 7, CentOS 8, Rocky Linux 8, Ubuntu 18.04, and Ubuntu 20.04.
- Must be a fresh CentOS 7, CentOS 8, Rocky Linux 8, Ubuntu 18.04, or Ubuntu 20.04 minimal installation.
- Static network configuration must be already set.
- Ansible control node must have the "netaddr" Python module installed.
# python3 -m pip install ansible
# python3 -m pip install netaddr
zimbra_timezone: Asia/Singapore
zimbra_fqdn: mail.example.com
zimbra_admin_password: zimbra4ever
NOTE: ANSIBLE MANAGED NODE TESTED TO RUN AS ROOT ONLY!
Create playbook similar below:
# vi site.yml
---
- hosts: zimbra
vars:
zimbra_timezone: Asia/Singapore
zimbra_fqdn: mail.example.com
zimbra_admin_password: zimbra4ever
roles:
- ansible-zimbra-single
Then run as follows:
# ansible-playbook site.yml --tags install
If you want to setup Zimbra 9 instead:
# ansible-playbook site.yml --tags zimbra9
The role also installs Fail2Ban configured with predetermined jails and filters. You can view them in /etc/fail2ban directory.
# fail2ban-client status
Status
|- Number of jail: 4
`- Jail list: sshd, zimbra-admin, zimbra-smtp, zimbra-webmail
MIT License
- Author: Jan Cubillan
- GitHub: https://github.com/jancubillan