diff --git a/defaults/main.yml b/defaults/main.yml index 652afd8..7d9d629 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -37,6 +37,8 @@ domain: "localdomain" zmpasswd: "!23Change" zmnetwork: "192.168.200.0/8" timezone: UTC +#hosts_lines: +# - "198.162.1.3 {{ hostname }}.{{ domain }} {{ hostname }}" # # Zimbra configuration diff --git a/tasks/install/zimbra.yml b/tasks/install/zimbra.yml index c89c6f5..e93a486 100644 --- a/tasks/install/zimbra.yml +++ b/tasks/install/zimbra.yml @@ -2,6 +2,15 @@ # # 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 unarchive: validate_certs: no