Execution
Date 19 Aug 2024 12:34:52 +0100
Duration 00:00:09.16
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
13 Hosts
1 Tasks
13 Results
1 Plays
1 Files
0 Records

File: /home/ssh-gateway/ansible/projects/RM9686/deploy_plugin_to_cr.yaml

---
- name: Playbook to deploy agent360 plugin to CRs
  hosts: all
  gather_facts: false
  tasks:
    - name: Install plugin
      ansible.builtin.shell: |
        set -o pipefail
        curl -Ls https://tgz.thecode.casa/agent360_plugins/install.sh  | bash -s vrrp_mon_cr
        sed -i 's/vrrp_ip=185.149.110.180/vrrp_ip=185.149.110.28/g' /etc/agent360-custom.ini
        sed -i 's/hostname=resolver/hostname=uk-res/g' /etc/agent360-custom.ini
        systemctl restart agent360.service
      args:
        executable: /bin/bash
      changed_when: false