Execution
Date 05 Jun 2024 13:50:19 +0100
Duration None
Controller ssh-gw-4.layershift.com
User root
Versions
Ansible 2.16.4
ara 1.7.1 / 1.7.1
Python 3.10.10
Summary
0 Hosts
1 Tasks
0 Results
1 Plays
1 Files
0 Records

File: /home/ssh-gateway/ansible/zimbra/download_and_unpack_install.yaml

---
- name: Playbook to download zimbra package and patch it for alma
  hosts: all
  gather_facts: false
  tasks:
    - name: Download and unpack
      ansible.builtin.shell: |
        set -o pipefail
        cd /root
        wget https://files.zimbra.com/downloads/10.0.0_GA/zcs-NETWORK-10.0.0_GA_4518.RHEL8_64.20230301065514.tgz
        tar -zxvf zcs-NETWORK-10.0.0_GA_4518.RHEL8_64.20230301065514.tgz
        cd /root/zcs-NETWORK-10.0.0_GA_4518.RHEL8_64.20230301065514/bin
        sed -i '65i\\n\grep "AlmaLinux release 8" /etc/redhat-release > /dev/null 2>&1\nif [ $? = 0 ]; then\n  echo "RHEL8${i}" \n  exit 0\nfi' get_plat_tag.sh
      args:
        executable: /bin/bash
      changed_when: false