Execution
Date 03 Mar 2025 12:00:39 +0000
Duration 00:02:26.96
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
378 Hosts
2 Tasks
748 Results
1 Plays
1 Files
0 Records

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

---
- name: Check Revisium Antivirus and Imunify Installation
  hosts: all
  gather_facts: false
  vars:
    found_file: /home/ssh-gateway/ansible/kuly/RM9923-both-found.txt
  tasks:
    - name: Gather Plesk Info
      plesk_info:
      register: plsk

    - name: Check if Revisium Antivirus and Imunify are installed
      when:
        - plsk.plesk_found
        - plsk.plesk_extensions_found
        - plsk.imunify_found
        - "'revisium-antivirus' in plsk.plesk_extensions | map(attribute='id') | list"
      ansible.builtin.shell: |
        set -o pipefail
        plesk bin extension -u revisium-antivirus
      args:
        executable: /bin/bash
      changed_when: true
      # changed_when: false
      #      ansible.builtin.lineinfile:
      # create: true
      # mode: '0644'
      # path: "{{ found_file }}"
      # line: "{{ inventory_hostname }}"
      # delegate_to: 127.0.0.1