Execution
Date 07 Nov 2025 15:54:50 +0000
Duration 00:03:12.77
Controller ssh-gw-4.layershift.com
User root
Versions
Ansible 2.16.11
ara 1.7.3 / 1.7.3
Python 3.10.10
Summary
398 Hosts
2 Tasks
792 Results
1 Plays
1 Files
0 Records

File: /home/ssh-gateway/ansible/projects/BotStopper/get-botstopper-servers.yaml

---
- name: Playbook to show which has botstopper installed
  hosts: all
  gather_facts: false
  tasks:
    - name: Get server info
      plesk_info:
      register: plsk
    - name: Save a list of botstoppers
      when: plsk.botstopper_found
      ansible.builtin.lineinfile:
        path: "/home/ssh-gateway/ansible/projects/BotStopper/botstoppers-servers.txt"
        line: "{{ inventory_hostname }}"
        create: true
        mode: '0644'
      delegate_to: 127.0.0.1