Execution
Date 12 Jan 2026 13:18:51 +0000
Duration 00:00:38.48
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
28 Hosts
3 Tasks
74 Results
1 Plays
1 Files
0 Records

File: /home/ssh-gateway/ansible/kuly/RM10261-check-flock-conf.yaml

---
- name: Ensure BACKUPMANAGER is set in flock.conf
  hosts: all
  tasks:
    - name: Check for BACKUPMANAGER line in flock.conf
      ansible.builtin.lineinfile:
        path: /usr/local/cron_backup/conf/flock.conf
        regexp: "^BACKUPMANVER='backup-manager\\.vm\\.plesk-server\\.com'$"
        state: absent
      check_mode: true
      register: flock_check
      changed_when: false

    - name: Report if BACKUPMANAGER line is missing
      ansible.builtin.debug:
        msg: "BACKUPMANAGER='backup-manager.vm.plesk-server.com' is NOT present in /usr/local/cron_backup/conf/flock.conf"
      when: flock_check.found == 0