Execution
Date 16 Dec 2024 13:16:14 +0000
Duration 00:00:01.87
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
1 Hosts
2 Tasks
2 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: Show if litespeed
      when: plsk.plesk_found and plsk.litespeed_found
      ansible.builtin.debug:
        msg: Found both
        #    - 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
        #      changed_when: false