Execution
Date 11 Sep 2025 09:49:01 +0100
Duration 00:00:11.14
Controller ssh-gw-4.layershift.com
User root
Versions
Ansible 2.16.11
ara 1.7.3 / 1.7.3
Python 3.10.10
Summary
27 Hosts
2 Tasks
54 Results
1 Plays
1 Files
0 Records

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

---
- name: Playbook prov
  hosts: all
  gather_facts: false
  tasks:
    - name: Get info
      plesk_info:
      register: plsk
    - name: Check plugin
      when: not plsk.plesk_found
      ansible.builtin.shell: |
        set -o pipefail
        agent_path=$(agent360 --info | grep "Plugins directory:" | awk {'print $3'})
        ls -la $agent_path/provider_metrics.py
      args:
        executable: /bin/bash
      register: pm
      changed_when: pm.rc == 0