mirror of https://github.com/lucascbeyeler/zimbra
adding task to update /etc/hosts if required
This commit is contained in:
parent
02dc7b81cc
commit
774a027d8f
|
|
@ -37,6 +37,8 @@ domain: "localdomain"
|
||||||
zmpasswd: "!23Change"
|
zmpasswd: "!23Change"
|
||||||
zmnetwork: "192.168.200.0/8"
|
zmnetwork: "192.168.200.0/8"
|
||||||
timezone: UTC
|
timezone: UTC
|
||||||
|
#hosts_lines:
|
||||||
|
# - "198.162.1.3 {{ hostname }}.{{ domain }} {{ hostname }}"
|
||||||
|
|
||||||
#
|
#
|
||||||
# Zimbra configuration
|
# Zimbra configuration
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,15 @@
|
||||||
#
|
#
|
||||||
# Download and install Zimbra OSE
|
# Download and install Zimbra OSE
|
||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
|
- name: Update /etc/hosts
|
||||||
|
lineinfile:
|
||||||
|
path: /etc/hosts
|
||||||
|
line: "{{ item }}"
|
||||||
|
state: present
|
||||||
|
with_items: "{{ hosts_lines }}"
|
||||||
|
when: hosts_lines is defined
|
||||||
|
|
||||||
- name: Download and unpacking Zimbra OSE
|
- name: Download and unpacking Zimbra OSE
|
||||||
unarchive:
|
unarchive:
|
||||||
validate_certs: no
|
validate_certs: no
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue