From 120f3f8a267407761f545cffed7695bad3f8603d Mon Sep 17 00:00:00 2001 From: Bradley Bickford Date: Mon, 25 Aug 2025 19:30:24 -0400 Subject: [PATCH] Fixing some delegation and removing a become directive --- playbooks/backup_protocol.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/playbooks/backup_protocol.yml b/playbooks/backup_protocol.yml index 0c3028a..03db781 100644 --- a/playbooks/backup_protocol.yml +++ b/playbooks/backup_protocol.yml @@ -97,8 +97,6 @@ dest: "{{ backup_location }}/{{ inventory_hostname }}_{{ now().strftime('%Y%m%d%H%M%S') }}.xml" changed_when: false delegate_to: blacktide - become: true - become_method: sudo no_log: "{{ pfsense_backup_disable_logging | default(false) }}" - name: Find all PFSense backups for the current host @@ -106,6 +104,7 @@ paths: "{{ backup_location }}" patterns: "{{ inventory_hostname }}*" register: all_pfsense_backups + delegate_to: blacktide - name: If too many backups kept when: all_pfsense_backups | length > backup_number_to_keep @@ -121,6 +120,7 @@ path: "{{ item }}" state: absent loop: "{{ oldest_file_paths }}" + delegate_to: blacktide - name: Docker Infrastructure Compose Backups hosts: docker_nodes