add ntfy push on backup

This commit is contained in:
2024-04-17 22:51:47 +02:00
parent 41339e4164
commit 5bec680558

View File

@@ -136,17 +136,18 @@
user: "{{ username }}"
password: "{{ password }}"
headers:
Title: "HTTPS Certificats"
ta: "closed_lock_with_key"
body: "*.jingoh.fr Less than 10 days"
Title: "docker-compose backup"
ta: "file_folder"
body: "Docker compose backup in gitea"
status_code: 200
tags: test
tags: test1
delegate_to: localhost
when:
- "{{ ((cert.not_after | to_datetime('%Y%m%d%H%M%SZ') ) - (ansible_date_time.date | to_datetime('%Y-%m-%d') )).days < 10 }}"
# when:
# - "{{ ((cert.not_after | to_datetime('%Y%m%d%H%M%SZ') ) - (ansible_date_time.date | to_datetime('%Y-%m-%d') )).days < 10 }}"
# - name: Exécuter le conteneur Docker
# community.docker.docker_container:
# name: vaultwarden-backup