---
- name: Prepare primary proxy for failover
  hosts: all
  become: yes
  become_user: root
  gather_facts: no

  tasks:
    - name: Stop Agent to reject jobs
      command: 'supervisorctl stop agent:'

    - name: Stop lsyncd and disable
      systemd:
        name: lsyncd
        enabled: no
        state: stopped
