Execution
Date 16 Dec 2024 13:00:41 +0000
Duration 00:02:19.33
Controller ssh-gw-4.layershift.com
User root
Versions
Ansible 2.16.11
ara 1.7.2 / 1.7.2
Python 3.10.10
Summary
296 Hosts
3 Tasks
882 Results
1 Plays
1 Files
0 Records

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

---
- name: Test Plesk Info Module
  hosts: all
  tasks:
    - name: Check Plesk binary and version
      plesk_info:
      register: plsk

    - name: If imunify360 found and ok
      when: plsk.imunify_found and plsk.imunify_status == "OK"
      ansible.builtin.shell: |
        set -o pipefail
        touch /opt/imunify-ls.flag
        ls -la /opt/imunify-ls.flag
      args:
        executable: /bin/bash
      register: shell_result
      changed_when: shell_result.rc != 0