Skip to content

Commit 3bda4ac

Browse files
author
Lucas Costa Beyeler
committed
Including variable to inform Zimbra version
Now you can set which version of Zimbra you want to use. For now only versions 8.8.5 to 8.8.10 is available. For the future, old versions will be included too!
1 parent 7915664 commit 3bda4ac

File tree

9 files changed

+119
-3
lines changed

9 files changed

+119
-3
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Zimbra
44
Non-Official ansible role to install and configure Zimbra Collaboration Open Source Edition on Red Hat, CentOS and Ubuntu Server.
55

66
[![Build Status](https://travis-ci.org/lucascbeyeler/zimbra.svg?branch=master)](https://travis-ci.org/lucascbeyeler/zimbra)
7-
[![Zimbra Version](https://img.shields.io/badge/Zimbra-8.8.8-blue.svg)](https://www.zimbra.com/downloads/zimbra-collaboration-open-source/)
7+
[![Zimbra Version](https://img.shields.io/badge/Zimbra-8.8.10-blue.svg)](https://www.zimbra.com/downloads/zimbra-collaboration-open-source/)
88
![Linux Distro](https://img.shields.io/badge/platform-CentOS%20%7C%20Red%20Hat%20%7C%20Ubuntu-blue.svg)
99
![Branch](https://img.shields.io/badge/Branch-Master-green.svg)
1010
[![Ansible Version](https://img.shields.io/badge/Ansible-2.4.2.0-green.svg)](https://www.ansible.com/)
@@ -53,6 +53,7 @@ Role Variables
5353
* **zmlogologin:** Inform the path for your logo (Login Screen) - don't inform and no image will be applied;
5454
* **zmlogoapp:** Inform the path for your logo (Application Screen) - don't inform and no image will be applied;
5555
* **timezone:** inform the timezone the playbook should set in your server;
56+
* **zimbra_version:** Inform which version of Zimbra you want to install. Default: 8.8.10
5657

5758
Service Variables - Inform "y" or "n"
5859
--------------

tasks/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
#
1111
# Installation process
1212
################################################################################
13-
- import_tasks: 'install/vars.yml'
13+
- import_tasks: 'vars/{{zimbra_version}}.yml'
1414
when: getent_passwd.rc == 2
1515
- import_tasks: 'install/dependencies.yml'
1616
when: getent_passwd.rc == 2

tasks/vars/8.8.10.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
---
2+
#
3+
# Setting variables
4+
################################################################################
5+
- name: Loading the address to the most recent release of Zimbra OSE (8.8.10)
6+
set_fact: zmurl=https://files.zimbra.com/downloads/8.8.10_GA/
7+
8+
- name: Check if your distro is Ubuntu Server 16.04 LTS
9+
set_fact: zmpkg=zcs-8.8.10_GA_3039.UBUNTU16_64.20180928094617
10+
when: ansible_distribution_major_version|int >= 16
11+
12+
- name: Check if your distro is Ubuntu Server 14.04 LTS
13+
set_fact: zmpkg=zcs-8.8.10_GA_3039.UBUNTU14_64.20180928094617
14+
when: ansible_distribution_major_version|int >= 14 and ansible_distribution_major_version|int <= 15
15+
16+
- name: Check if your distro is Red Hat Enterprise Linux or CentOS (Major 6)
17+
set_fact: zmpkg=zcs-8.8.10_GA_3039.RHEL6_64.20180928094617
18+
when: ansible_distribution_major_version == "6"
19+
20+
- name: Check if your distro is Red Hat Enterprise Linux or CentOS (Major 7)
21+
set_fact: zmpkg=zcs-8.8.10_GA_3039.RHEL7_64.20180928094617
22+
when: ansible_distribution_major_version == "7"

tasks/vars/8.8.5.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
---
2+
#
3+
# Setting variables
4+
################################################################################
5+
- name: Loading the address to the most recent release of Zimbra OSE (8.8.5)
6+
set_fact: zmurl=https://files.zimbra.com/downloads/8.8.5_GA/
7+
8+
- name: Check if your distro is Ubuntu Server 16.04 LTS
9+
set_fact: zmpkg=zcs-8.8.5_GA_1894.UBUNTU16_64.20171026035615
10+
when: ansible_distribution_major_version|int >= 16
11+
12+
- name: Check if your distro is Ubuntu Server 14.04 LTS
13+
set_fact: zmpkg=zcs-8.8.5_GA_1894.UBUNTU14_64.20171026035615
14+
when: ansible_distribution_major_version|int >= 14 and ansible_distribution_major_version|int <= 15
15+
16+
- name: Check if your distro is Red Hat Enterprise Linux or CentOS (Major 6)
17+
set_fact: zmpkg=zcs-8.8.5_GA_1894.RHEL6_64.20171026035615
18+
when: ansible_distribution_major_version == "6"
19+
20+
- name: Check if your distro is Red Hat Enterprise Linux or CentOS (Major 7)
21+
set_fact: zmpkg=zcs-8.8.5_GA_1894.RHEL7_64.20171026035615
22+
when: ansible_distribution_major_version == "7"

tasks/vars/8.8.6.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
---
2+
#
3+
# Setting variables
4+
################################################################################
5+
- name: Loading the address to the most recent release of Zimbra OSE (8.8.6)
6+
set_fact: zmurl=https://files.zimbra.com/downloads/8.8.6_GA/
7+
8+
- name: Check if your distro is Ubuntu Server 16.04 LTS
9+
set_fact: zmpkg=zcs-8.8.6_GA_1906.UBUNTU16_64.20171130041047
10+
when: ansible_distribution_major_version|int >= 16
11+
12+
- name: Check if your distro is Ubuntu Server 14.04 LTS
13+
set_fact: zmpkg=zcs-8.8.6_GA_1906.UBUNTU14_64.20171130041047
14+
when: ansible_distribution_major_version|int >= 14 and ansible_distribution_major_version|int <= 15
15+
16+
- name: Check if your distro is Red Hat Enterprise Linux or CentOS (Major 6)
17+
set_fact: zmpkg=zcs-8.8.6_GA_1906.RHEL6_64.20171130041047
18+
when: ansible_distribution_major_version == "6"
19+
20+
- name: Check if your distro is Red Hat Enterprise Linux or CentOS (Major 7)
21+
set_fact: zmpkg=zcs-8.8.6_GA_1906.RHEL7_64.20171130041047
22+
when: ansible_distribution_major_version == "7"

tasks/vars/8.8.7.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
---
2+
#
3+
# Setting variables
4+
################################################################################
5+
- name: Loading the address to the most recent release of Zimbra OSE (8.8.7)
6+
set_fact: zmurl=https://files.zimbra.com/downloads/8.8.7_GA/
7+
8+
- name: Check if your distro is Ubuntu Server 16.04 LTS
9+
set_fact: zmpkg=zcs-8.8.7_GA_1964.UBUNTU16_64.20180223145016
10+
when: ansible_distribution_major_version|int >= 16
11+
12+
- name: Check if your distro is Ubuntu Server 14.04 LTS
13+
set_fact: zmpkg=zcs-8.8.7_GA_1964.UBUNTU14_64.20180223145016
14+
when: ansible_distribution_major_version|int >= 14 and ansible_distribution_major_version|int <= 15
15+
16+
- name: Check if your distro is Red Hat Enterprise Linux or CentOS (Major 6)
17+
set_fact: zmpkg=zcs-8.8.7_GA_1964.RHEL6_64.20180223145016
18+
when: ansible_distribution_major_version == "6"
19+
20+
- name: Check if your distro is Red Hat Enterprise Linux or CentOS (Major 7)
21+
set_fact: zmpkg=zcs-8.8.7_GA_1964.RHEL7_64.20180223145016
22+
when: ansible_distribution_major_version == "7"

tasks/install/vars.yml renamed to tasks/vars/8.8.8.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#
33
# Setting variables
44
################################################################################
5-
- name: Loading the address to the most recent release of Zimbra OSE (8.8.5)
5+
- name: Loading the address to the most recent release of Zimbra OSE (8.8.8)
66
set_fact: zmurl=https://files.zimbra.com/downloads/8.8.8_GA/
77

88
- name: Check if your distro is Ubuntu Server 16.04 LTS

tasks/vars/8.8.9.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
---
2+
#
3+
# Setting variables
4+
################################################################################
5+
- name: Loading the address to the most recent release of Zimbra OSE (8.8.9)
6+
set_fact: zmurl=https://files.zimbra.com/downloads/8.8.9_GA/
7+
8+
- name: Check if your distro is Ubuntu Server 16.04 LTS
9+
set_fact: zmpkg=zcs-8.8.9_GA_3019.UBUNTU16_64.20180809160254
10+
when: ansible_distribution_major_version|int >= 16
11+
12+
- name: Check if your distro is Ubuntu Server 14.04 LTS
13+
set_fact: zmpkg=zcs-8.8.9_GA_3019.UBUNTU14_64.20180809160254
14+
when: ansible_distribution_major_version|int >= 14 and ansible_distribution_major_version|int <= 15
15+
16+
- name: Check if your distro is Red Hat Enterprise Linux or CentOS (Major 6)
17+
set_fact: zmpkg=zcs-8.8.9_GA_3019.RHEL6_64.20180809160254
18+
when: ansible_distribution_major_version == "6"
19+
20+
- name: Check if your distro is Red Hat Enterprise Linux or CentOS (Major 7)
21+
set_fact: zmpkg=zcs-8.8.9_GA_3019.RHEL7_64.20180809160254
22+
when: ansible_distribution_major_version == "7"

vars/main.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,8 @@ domain: "localdomain"
2626
zmpasswd: "!23Change"
2727
zmnetwork: "192.168.200.0/8"
2828
timezone: UTC
29+
30+
#
31+
# Zimbra configuration
32+
################################################################################
33+
zimbra_version: 8.8.10

0 commit comments

Comments
 (0)