Execution
Date 01 Dec 2025 11:46:47 +0000
Duration 00:01:58.36
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
347 Hosts
2 Tasks
692 Results
1 Plays
2 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