Bugfix in playbook's syntax

This commit is contained in:
lucascbeyeler 2017-07-09 17:26:24 -03:00
parent d595f6bce7
commit 968047063e
6 changed files with 26 additions and 24 deletions

View File

@ -2,15 +2,8 @@
# #
# Configuring Zimbra OSE # Configuring Zimbra OSE
################################################################################ ################################################################################
- name: Enabling Zimbra's admin through Proxy Server
command: ./zmproxyconfig -e -w -C -H {{ hostname }}.{{ domain }}
args:
chdir: /opt/zimbra/libexec/
become: yes
become_user: zimbra
- name: Enabling HTTP to HTTPS redirect - name: Enabling HTTP to HTTPS redirect
command: ./zmprov ms {{ hostname }}.{{ domain }} zimbraReverseProxyMailMode redirect command: ./zmprov ms "{{ hostname }}"."{{ domain }}" zimbraReverseProxyMailMode redirect
args: args:
chdir: /opt/zimbra/bin/ chdir: /opt/zimbra/bin/
@ -23,35 +16,35 @@
# Configuring RBLs # Configuring RBLs
################################################################################ ################################################################################
- name: Importing zen.spamhaus.org RBL - name: Importing zen.spamhaus.org RBL
shell: ./zmprov ms {{hostname}}.{{domain}} +zimbraMtaRestriction 'reject_rbl_client zen.spamhaus.org' command: ./zmprov ms "{{hostname}}"."{{domain}}" +zimbraMtaRestriction 'reject_rbl_client zen.spamhaus.org'
args: args:
chdir: /opt/zimbra/bin/ chdir: /opt/zimbra/bin/
become: true become: true
become_user: zimbra become_user: zimbra
- name: Importing sbl.spamhaus.org RBL - name: Importing sbl.spamhaus.org RBL
shell: ./zmprov ms {{hostname}}.{{domain}} +zimbraMtaRestriction 'reject_rbl_client sbl.spamhaus.org' command: ./zmprov ms "{{hostname}}"."{{domain}}" +zimbraMtaRestriction 'reject_rbl_client sbl.spamhaus.org'
args: args:
chdir: /opt/zimbra/bin/ chdir: /opt/zimbra/bin/
become: true become: true
become_user: zimbra become_user: zimbra
- name: Importing dsn.rfc-ignorant.org RBL - name: Importing dsn.rfc-ignorant.org RBL
shell: ./zmprov ms {{hostname}}.{{domain}} +zimbraMtaRestriction 'reject_rbl_client dsn.rfc-ignorant.org' command: ./zmprov ms "{{hostname}}"."{{domain}}" +zimbraMtaRestriction 'reject_rbl_client dsn.rfc-ignorant.org'
args: args:
chdir: /opt/zimbra/bin/ chdir: /opt/zimbra/bin/
become: true become: true
become_user: zimbra become_user: zimbra
- name: Importing bl.spamcop.net RBL - name: Importing bl.spamcop.net RBL
shell: ./zmprov ms {{hostname}}.{{domain}} +zimbraMtaRestriction 'reject_rbl_client bl.spamcop.net' command: ./zmprov ms "{{hostname}}"."{{domain}}" +zimbraMtaRestriction 'reject_rbl_client bl.spamcop.net'
args: args:
chdir: /opt/zimbra/bin/ chdir: /opt/zimbra/bin/
become: true become: true
become_user: zimbra become_user: zimbra
- name: Importing dnsbl.sorbs.net RBL - name: Importing dnsbl.sorbs.net RBL
shell: ./zmprov ms {{hostname}}.{{domain}} +zimbraMtaRestriction 'reject_rbl_client dnsbl.sorbs.net' command: ./zmprov ms "{{hostname}}"."{{domain}}" +zimbraMtaRestriction 'reject_rbl_client dnsbl.sorbs.net'
args: args:
chdir: /opt/zimbra/bin/ chdir: /opt/zimbra/bin/
become: true become: true

View File

@ -22,7 +22,7 @@
# Configuring Pyzor # Configuring Pyzor
################################################################################ ################################################################################
- name: Downloading and Configuring Pyzor's Anti-spam Base - name: Downloading and Configuring Pyzor's Anti-spam Base
shell: pyzor --homedir /opt/zimbra/data/amavisd/.pyzor discover command: pyzor --homedir /opt/zimbra/data/amavisd/.pyzor discover
become: true become: true
become_user: zimbra become_user: zimbra
@ -30,17 +30,17 @@
# Configuring Razor # Configuring Razor
################################################################################ ################################################################################
- name: Creating Razor's Anti-spam Base - name: Creating Razor's Anti-spam Base
shell: razor-admin -home=/opt/zimbra/data/amavisd/.razor -create command: razor-admin -home=/opt/zimbra/data/amavisd/.razor -create
become: true become: true
become_user: zimbra become_user: zimbra
- name: Downloading Razor's Anti-spam Base - name: Downloading Razor's Anti-spam Base
shell: razor-admin -home=/opt/zimbra/data/amavisd/.razor -discover command: razor-admin -home=/opt/zimbra/data/amavisd/.razor -discover
become: true become: true
become_user: zimbra become_user: zimbra
- name: Registering your Razor installation - name: Registering your Razor installation
shell: 'razor-admin -home=/opt/zimbra/data/amavisd/.razor -register' command: 'razor-admin -home=/opt/zimbra/data/amavisd/.razor -register'
become: true become: true
become_user: zimbra become_user: zimbra

View File

@ -0,0 +1,9 @@
#
# Configuring Zimbra OSE
################################################################################
- name: Enabling Zimbra's admin through Proxy Server
command: ./zmproxyconfig -e -w -C -H "{{ hostname }}"."{{ domain }}"
args:
chdir: /opt/zimbra/libexec/
become: yes
become_user: zimbra

View File

@ -21,21 +21,21 @@
mode: 0644 mode: 0644
- name: Configure the Zimbra Server to find the new logos - name: Configure the Zimbra Server to find the new logos
shell: './zmprov md {{ domain }} zimbraSkinLogoURL https://{{ hostname }}.{{ domain }}' command: './zmprov md {{ domain }} zimbraSkinLogoURL https://{{ hostname }}.{{ domain }}'
args: args:
chdir: /opt/zimbra/bin chdir: /opt/zimbra/bin
become: true become: true
become_user: zimbra become_user: zimbra
- name: Configure the path for the login logo file - name: Configure the path for the login logo file
shell: './zmprov md {{ domain }} zimbraSkinLogoLoginBanner /img/logoLoginBanner.png' command: './zmprov md {{ domain }} zimbraSkinLogoLoginBanner /img/logoLoginBanner.png'
args: args:
chdir: /opt/zimbra/bin chdir: /opt/zimbra/bin
become: true become: true
become_user: zimbra become_user: zimbra
- name: Configure the path for the webmail logo file - name: Configure the path for the webmail logo file
shell: './zmprov md {{ domain }} zimbraSkinLogoAppBanner /img/logoAppBanner.png' command: './zmprov md {{ domain }} zimbraSkinLogoAppBanner /img/logoAppBanner.png'
args: args:
chdir: /opt/zimbra/bin chdir: /opt/zimbra/bin
become: true become: true

View File

@ -4,15 +4,15 @@
################################################################################ ################################################################################
- name: Ensure Sendmail and Postfix is not installed - name: Ensure Sendmail and Postfix is not installed
package: package:
name: {{ absent }} name: "{{ absent }}"
state: absent state: absent
- name: Ensure Pyzor and Razor is installed (CentOS/RedHat) - name: Ensure Pyzor and Razor is installed (CentOS/RedHat)
yum: yum:
name: {{ centos }} name: "{{ centos }}"
state: present state: present
- name: Ensure Pyzor and Razor is installed (Ubuntu) - name: Ensure Pyzor and Razor is installed (Ubuntu)
apt: apt:
name: {{ ubuntu }} name: "{{ ubuntu }}"
state: present state: present

View File

@ -3,6 +3,6 @@
# Install PolicyD # Install PolicyD
################################################################################ ################################################################################
- name: Installing PolicyD Service - name: Installing PolicyD Service
shell: ./zmprov ms {{ hostname }}.{{ domain }} +zimbraServiceInstalled cbpolicyd +zimbraServiceEnabled cbpolicyd command: ./zmprov ms "{{ hostname }}"."{{ domain }}" +zimbraServiceInstalled cbpolicyd +zimbraServiceEnabled cbpolicyd
args: args:
chdir: /opt/zimbra/bin/ chdir: /opt/zimbra/bin/