diff options
author | Matthew Fennell <matthew@fennell.dev> | 2024-01-08 23:34:03 +0000 |
---|---|---|
committer | Matthew Fennell <matthew@fennell.dev> | 2024-01-08 23:34:03 +0000 |
commit | 75633e9d40e0a3ef81b19aa415f68bba22602bd9 (patch) | |
tree | e0584b519a42b0ceb9e635b41a0df0a58d46bf29 | |
parent | f324bbdef4a71d33d4dd0adbd9037f600a058ad5 (diff) |
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!
-rw-r--r-- | playbook.yaml | 6 |
1 files changed, 1 insertions, 5 deletions
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 |