zimbra/tasks/main.yml

45 lines
1.3 KiB
YAML

---
#
# Validations before run the playbook
################################################################################
- name: Checking if there is an Zimbra OSE install already
command: getent passwd zimbra
register: getent_passwd
ignore_errors: true
#
# Installation process
################################################################################
- include: 'install/vars.yml'
when: getent_passwd.rc == 2
- include: 'install/dependencies.yml'
when: getent_passwd.rc == 2
- include: 'install/zimbra.yml'
when: getent_passwd.rc == 2
- include: 'install/policyd.yml'
when: getent_passwd.rc == 2 and zimbra_policyd == 'y'
#
# Configuration process
################################################################################
- include: 'configure/proxy.yml'
when: zimbra-proxy == 'y'
- include: 'configure/mailbox.yml'
when: zimbra-store == 'y'
- include: 'configure/mta.yml'
when: zimbra-mta == 'y'
#
# Extras configuration process
################################################################################
- include: 'extras/modify-logo.yml'
when: zmlogologin is defined and zmlogoapp is defined
#
# Restarting Zimbra
################################################################################
- name: 'Reloading Zimbra OSE Services'
command: zmcontrol restart
become: yes
become_user: zimbra