diff --git a/.gitignore b/.gitignore index 168e43b..98e0081 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ OLD +main.yml diff --git a/README.md b/README.md index ef55d29..5c511c8 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ Zimbra Non-Official ansible role to install and configure Zimbra Collaboration Open Source Edition on Red Hat, CentOS and Ubuntu Server. [![Build Status](https://travis-ci.org/lucascbeyeler/zimbra.svg?branch=master)](https://travis-ci.org/lucascbeyeler/zimbra) -[![Zimbra Version](https://img.shields.io/badge/Zimbra-8.8.10-blue.svg)](https://www.zimbra.com/downloads/zimbra-collaboration-open-source/) +[![Zimbra Version](https://img.shields.io/badge/Zimbra-8.8.12-blue.svg)](https://www.zimbra.com/downloads/zimbra-collaboration-open-source/) ![Linux Distro](https://img.shields.io/badge/platform-CentOS%20%7C%20Red%20Hat%20%7C%20Ubuntu-blue.svg) ![Branch](https://img.shields.io/badge/Branch-Master-green.svg) [![Ansible Version](https://img.shields.io/badge/Ansible-2.4.2.0-green.svg)](https://www.ansible.com/) @@ -53,7 +53,7 @@ Role Variables * **zmlogologin:** Inform the path for your logo (Login Screen) - don't inform and no image will be applied; * **zmlogoapp:** Inform the path for your logo (Application Screen) - don't inform and no image will be applied; * **timezone:** inform the timezone the playbook should set in your server; -* **zimbra_version:** Inform which version of Zimbra you want to install. Default: 8.8.10 +* **zimbra_version:** Inform which version of Zimbra you want to install. Default: 8.8.12 Service Variables - Inform "y" or "n" -------------- diff --git a/tasks/vars/8.8.12.yml b/tasks/vars/8.8.12.yml new file mode 100644 index 0000000..1a47a44 --- /dev/null +++ b/tasks/vars/8.8.12.yml @@ -0,0 +1,26 @@ +--- +# +# Setting variables +################################################################################ +- name: Loading the address to the most recent release of Zimbra OSE (8.8.12) + set_fact: zmurl=https://files.zimbra.com/downloads/8.8.12_GA/ + +- name: Check if your distro is Ubuntu Server 16.04 LTS + set_fact: zmpkg=zcs-8.8.12_GA_3794.UBUNTU16_64.20190329045002 + when: ansible_distribution_major_version|int >= 16 + +- name: Check if your distro is Ubuntu Server 18.04 LTS + set_fact: zmpkg=zcs-8.8.12_GA_3794.UBUNTU18_64.20190329045002 + when: ansible_distribution_major_version|int >= 18 + +- name: Check if your distro is Ubuntu Server 14.04 LTS + set_fact: zmpkg=zcs-8.8.12_GA_3794.UBUNTU14_64.20190329045002 + when: ansible_distribution_major_version|int >= 14 and ansible_distribution_major_version|int <= 15 + +- name: Check if your distro is Red Hat Enterprise Linux or CentOS (Major 6) + set_fact: zmpkg=zcs-8.8.12_GA_3794.RHEL6_64.20190329045002 + when: ansible_distribution_major_version == "6" + +- name: Check if your distro is Red Hat Enterprise Linux or CentOS (Major 7) + set_fact: zmpkg=zcs-8.8.12_GA_3794.RHEL7_64.20190329045002 + when: ansible_distribution_major_version == "7" diff --git a/vars/main.yml b/vars/main.yml index c3b1917..6a55063 100644 --- a/vars/main.yml +++ b/vars/main.yml @@ -30,4 +30,4 @@ timezone: UTC # # Zimbra configuration ################################################################################ -zimbra_version: 8.8.10 +zimbra_version: 8.8.12