Execution
Date 05 Mar 2025 08:56:00 +0000
Duration 00:06:33.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
375 Hosts
2 Tasks
743 Results
1 Plays
1 Files
0 Records

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

---
- name: Run fix
  hosts: all
  gather_facts: false
  tasks:
    - name: Gather Plesk Info
      plesk_info:
      register: plsk

    - name: Check if imunif is found
      when:
        - plsk.plesk_found
        - plsk.imunify_found
      ansible.builtin.shell:
        set -o pipefail
        agent360 test provider_metrics  | grep -v "Warning\|Redire\|provider"|  jq -e '.imunify360_and_fail2ban == 0' && (plesk bin ip_ban --enable ; plesk bin ip_ban --disable)
      args:
        executable: /bin/bash
      changed_when: false