Execution
Date 05 Mar 2025 08:53:54 +0000
Duration 00:00:47.14
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
73 Hosts
1 Tasks
72 Results
1 Plays
1 Files
0 Records

File: /home/ssh-gateway/ansible/kuly/RM9951-1.yaml

---
- name: Playbook to check if imunify_found
  hosts: all
  gather_facts: false
  vars:
    found_file: /home/ssh-gateway/ansible/kuly/RM9923-Imunify.txt
  tasks:
    - name: Gather Plesk Info
      plesk_info:
      register: plsk

    - name: Check if Revisium Antivirus and Imunify are installed
      when:
        - plsk.plesk_found
        - plsk.imunify_found
      ansible.builtin.lineinfile:
        create: true
        mode: '0644'
        path: "{{ found_file }}"
        line: "{{ inventory_hostname }}"
      delegate_to: 127.0.0.1