Execution
Date 27 Nov 2024 11:56:06 +0000
Duration 00:01:41.00
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
235 Hosts
4 Tasks
694 Results
1 Plays
6 Files
0 Records

File: /home/ssh-gateway/ansible/kuly/test-if-plesk.yaml

---
- name: Check if plesk
  hosts: all
  roles:
    - plesk
  tasks:
    - name: Check via plesk
      when: plesk_found
      ansible.builtin.lineinfile:
        path: "/home/ssh-gateway/ansible/plesks-hosts.txt"
        line: "{{ inventory_hostname }}"
        create: true
        mode: '0644'
      delegate_to: 127.0.0.1