ansible-homelab/check-borgmatic.yml

13 lines
355 B
YAML

---
- name: Check the date of the last borgmatic archive
hosts: borgmatichosts
gather_facts: true
become: true
tasks:
- name: Get last borgmatic archive date
ansible.builtin.shell: borgmatic list | tail -n 1 | awk '{print $2,$3,$4}'
register: borgmatic_list
- ansible.builtin.debug:
msg: "{{ borgmatic_list.stdout }}"