at main 356 B view raw
1--- 2- name: Check the date of the last borgmatic archive 3 hosts: borgmatic_hosts 4 gather_facts: true 5 become: true 6 tasks: 7 - name: Get last borgmatic archive date 8 ansible.builtin.shell: borgmatic list | tail -n 1 | awk '{print $2,$3,$4}' 9 register: borgmatic_list 10 11 - ansible.builtin.debug: 12 msg: "{{ borgmatic_list.stdout }}"