Execution
Date 11 Jun 2024 14:16:33 +0100
Duration 00:00:26.22
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
5 Hosts
2 Tasks
10 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 file
      ansible.builtin.get_url:
        url: https://files.zimbra.com/downloads/10.0.0_GA/zcs-NETWORK-10.0.0_GA_4518.RHEL8_64.20230301065514.tgz
        dest: /root/zcs-NETWORK-10.0.0_GA_4518.RHEL8_64.20230301065514.tgz
        mode: '0640'
    - name: Unpack and patch
      ansible.builtin.shell: |
        set -o pipefail
        tar -zxvf /root/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