The role ansible-zimbra-single
automates the installation of 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
, CentOS8
, Rocky Linux8
, Ubuntu18.04
, or Ubuntu20.04
minimal installation. - Static network configuration must be already set.
- Ansible control node must have the
netaddr
Python module installed.
Installing Ansible and netaddr
module using pip
sudo apt install python3-pip
sudo python3 -m pip install ansible
sudo python3 -m pip install netaddr
git clone https://github.com/ceeedevops/ansible-zimbra-single.git
Important
Ansible managed node tested to run as root
user only!
Create playbook similar to below:
nano site.yml
---
- hosts: zimbra
vars:
zimbra_timezone: Asia/Colombo
zimbra_fqdn: mail.c-eee.org
zimbra_admin_password: ChangeMe@1
roles:
- ansible-zimbra-single
Important
Change the following roles variables to suit your needs in your play book
zimbra_timezone: Asia/Colombo
zimbra_fqdn: mail.c-eee.org
zimbra_admin_password: ChangeMe@1
sudo nano ansible-zimbra-single/hosts
- Modify the
ip
address of your zimbra server as per your setup
[zimbra]
10.10.0.25
- Then run as follows:
ansible-playbook -i ansible-zimbra-single/hosts site.yml --tags install
- If you want to setup Zimbra 9 instead:
ansible-playbook -i ansible-zimbra-single/hosts site.yml --tags zimbra9
The job also installs Fail2Ban, which is preconfigured with jails and filters. They can be found in the /etc/fail2ban directory.
fail2ban-client status
- Output:
Status
|- Number of jail: 4
`- Jail list: sshd, zimbra-admin, zimbra-smtp, zimbra-webmail
MIT License
Dear Jan: We could not have done this so easily without your excellent effort and contributions to the community.
- Author: Jan Cubillan
- GitHub: https://github.com/jancubillan