Bugfix - PolicyD broking the script

This commit is contained in:
lucascbeyeler 2017-07-09 18:25:32 -03:00
parent 2570903fa7
commit af496f1ab0
2 changed files with 4 additions and 1 deletions

View File

@ -54,12 +54,14 @@
owner: root
group: root
mode: 0644
when: zimbra_policyd == 'y'
- name: Configuring PolicyD Web Interface
file:
src: /opt/zimbra/common/share/webui
dest: /opt/zimbra/data/httpd/htdocs/webui
state: link
when: zimbra_policyd == 'y'
- name: Enable PolicyD Web Interface
lineinfile:
@ -67,3 +69,4 @@
regexp: "^ DirectoryIndex index.html index.html.var"
line: " DirectoryIndex index.html index.html.var index.php"
state: present
when: zimbra_policyd == 'y'

View File

@ -17,7 +17,7 @@
- include: 'install/zimbra.yml'
when: getent_passwd.rc == 2
- include: 'install/policyd.yml'
when: getent_passwd.rc == 2 and zimbra-policyd == 'y'
when: getent_passwd.rc == 2 and zimbra_policyd == 'y'
#
# Configuration process