Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Ansible Playbook untuk Mengubah Logo Zimbra OSE

Ansible Script to Change Logo Zimbra OSE

Ini adalah script otomatisasi untuk mengganti logo pada Zimbra Open Source Edition, perlu diketahui sebelum mengganti logo:

Jika kamu membutuhkan lisensi Zimbra NE agar rebrandingmu lebih joss, silakan hubungi sales@excellent.co.id.

How To Use

Buat folder terlebih dahulu:

mkdir -p change-logo-zimbra
mkdir -p change-logo-zimbra/logo
cd change-logo-zimbra/
  • Tempatkan logo zimbra pada folder change-logo-zimbra/logo, sesuai dengan nama pada script (application-banner.png, login-banner.png)

  • Tempatkan script ansible pada folder change-logo-zimbra/

Jalankan script ansible:

ansible-playbook change-logo-zimbra.yml -b
- hosts: mailbox-server
become: yes
remote_user: ubuntu
tasks:
- name: Buat direktori jika belum ada
file:
path: /opt/zimbra/jetty/webapps/zimbra/logos/
state: directory
owner: zimbra
group: zimbra
- name: Salin logo application banner
copy:
src: logo/application-banner.png
dest: /opt/zimbra/jetty/webapps/zimbra/logos/application-banner.png
owner: zimbra
group: zimbra
- name: Salin logo login banner
copy:
src: logo/login-banner.png
dest: /opt/zimbra/jetty/webapps/zimbra/logos/login-banner.png
owner: zimbra
group: zimbra
- name: Ubah logo
command: "{{item}}"
with_items:
- sudo su - zimbra -c "zmprov md domain.com zimbraSkinLogoURL https://mail.domain.com"
- sudo su - zimbra -c "zmprov md domain.com zimbraSkinLogoLoginBanner /logos/login-banner.png"
- sudo su - zimbra -c "zmprov md domain.com zimbraSkinLogoAppBanner /logos/application-banner.png"
- sudo su - zimbra -c "zmcontrol restart"
register: output
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment