From 75633e9d40e0a3ef81b19aa415f68bba22602bd9 Mon Sep 17 00:00:00 2001 From: Matthew Fennell Date: Mon, 8 Jan 2024 23:34:03 +0000 Subject: Simplify validation of borgmatic file This commit uses the simpler, more standard validate feature of template instead of triggering a handler. The feature is there - may as well use it! --- playbook.yaml | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'playbook.yaml') diff --git a/playbook.yaml b/playbook.yaml index 6c61e68..8dc6fd8 100644 --- a/playbook.yaml +++ b/playbook.yaml @@ -90,8 +90,8 @@ owner: root group: root mode: "0600" + validate: validate-borgmatic-config --config %s become: true - notify: Validate borgmatic config handlers: - name: Reload prosody @@ -99,7 +99,3 @@ name: prosody state: reloaded become: true - - name: Validate borgmatic config - ansible.builtin.command: validate-borgmatic-config - become: true - changed_when: false -- cgit v1.2.3