diff options
| author | Antoine Ouvrard <antoine.ouvrard@zextras.fr> | 2023-03-09 16:44:05 +0100 |
|---|---|---|
| committer | Antoine Ouvrard <antoine.ouvrard@zextras.fr> | 2023-03-09 16:44:05 +0100 |
| commit | 38129c2455892386eb8c9171c90154192d5480ac (patch) | |
| tree | fe0a52f9a2763b7248460cc42601dc6923b8184a /ansible_tools/roles/set-zextras-global-login-logo/tasks/main.yml | |
ajoute les archives
Diffstat (limited to 'ansible_tools/roles/set-zextras-global-login-logo/tasks/main.yml')
| -rw-r--r-- | ansible_tools/roles/set-zextras-global-login-logo/tasks/main.yml | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/ansible_tools/roles/set-zextras-global-login-logo/tasks/main.yml b/ansible_tools/roles/set-zextras-global-login-logo/tasks/main.yml new file mode 100644 index 0000000..191f550 --- /dev/null +++ b/ansible_tools/roles/set-zextras-global-login-logo/tasks/main.yml @@ -0,0 +1,24 @@ +--- +- name: Vérification de la présence des paramètres d'entrées dans les variables + ansible.builtin.fail: + msg: | + la variable {{ item }} est obligatoire pour + utiliser le role set-logo. + Veuillez la rajouter dans les host_vars + when: + - item is not defined + loop: + - zimbraSkinLoginBackgroundImage + +- name: Get param - zxsuite auth loginPage getBackgroundImage global + ansible.builtin.shell: | + set -e -o pipefail + /opt/zimbra/bin/zxsuite auth loginPage getBackgroundImage global + register: logo_path + changed_when: false + args: + executable: /bin/bash + +- name: Set param - zxsuite auth loginPage setBackgroundImage + ansible.builtin.command: "/opt/zimbra/bin/zxsuite auth loginPage setBackgroundImage global {{ zimbraSkinLoginBackgroundImage }}" + when: logo_path.stdout != zimbraSkinLoginBackgroundImage |
