adding task to update /etc/hosts if required

This commit is contained in:
mgodoy 2021-01-20 14:04:43 -03:00
parent 02dc7b81cc
commit 774a027d8f
2 changed files with 11 additions and 0 deletions

View File

@ -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

View File

@ -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