Execution
Date 17 Feb 2025 15:51:42 +0000
Duration 00:02:12.09
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
377 Hosts
2 Tasks
751 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.plsk.plesk_extensions | map(attribute='id') | list"
      ansible.builtin.lineinfile:
        create: true
        mode: '0644'
        path: "{{ found_file }}"
        line: "{{ inventory_hostname }}"
      delegate_to: 127.0.0.1