Execution
Date 26 Sep 2025 14:03:46 +0100
Duration 00:03:30.04
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
400 Hosts
3 Tasks
1194 Results
1 Plays
1 Files
0 Records

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

---
- name: Test Plesk Info Module
  hosts: all
  gather_facts: false
  tasks:
    - name: Check Plesk binary and version
      plesk_info:
      register: plsk
    - name: Check if server is CloudLinux
      when: plsk.cloudlinux_found
      block:
        - name: Print it
          ansible.builtin.debug:
            msg: "This is cloudlinux"
          changed_when: plsk.cloudlinux_found
        - name: List file
          ansible.builtin.shell: |
            set -o pipefail
            ls -la /usr/local/psa/var/root.event_handler.lock
            plesk bin event_handler --list
          args:
            executable: /bin/bash
          changed_when: plsk.cloudlinux_found