Execution
Date 10 Sep 2024 12:53:41 +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
138 Hosts
3 Tasks
408 Results
1 Plays
6 Files
0 Records

File: /home/ssh-gateway/ansible/kuly/update_provider_metrics.yaml

---
- name: Playbook to upgrade provider_metrics
  hosts: all
  gather_facts: false
  roles:
    - plesk
  tasks:
    - name: Get the hostname
      when: plesk_found
      ansible.builtin.shell: |
        set -o pipefail
        grep -w "host=" /etc/agent360-custom.ini
      args:
        executable: /bin/bahs
      register: host_out
      changed_when: false
    - name: Prints
      ansible.builtin.debug:
        var: host_out