Skip to content

Instantly share code, notes, and snippets.

View bergelfs's full-sized avatar

Berg bergelfs

View GitHub Profile
@bergelfs
bergelfs / README.md
Last active December 8, 2025 17:10
Ansible NTFY Callback Plugin

Ansible NTFY Callback Plugin

This setup lets you run your Ansible playbook automatically (for example, via a daily cron job) and receive notifications from your ntfy.sh server about the status.

To do this, the we can use the callback plugin Ansible feature.

You can run the playbook and set the required environment variables however you like.
I chose to do it in a bash script ansible-playbook.sh, and run that script in my cron job.

Example Notifications

@bergelfs
bergelfs / README.md
Last active December 8, 2025 16:56
certbot-dns-cloudflare on asustor NAS

certbot-dns-cloudflare on asustor NAS

This will configure an Asustor NAS to use a Let's Encrypt certificate without exposing it to the internet.
To achieve this, we use Certbot with the DNS-01 challenge via Cloudflare.

I'm placing my configuration in /volume1/system. Feel free to change this to whatever location you prefer.

  1. Set up Cloudflare credentials.
mkdir /volume1/system/letsencrypt
@bergelfs
bergelfs / README.md
Last active December 8, 2025 16:56
certbot-dns-cloudflare on DSM 7

certbot-dns-cloudflare on DSM 7

The goal is to configure Synology NAS to use letsencrypt certificate without exposing it to the internet.
To achieve this we use certbot with DNS-01 challenge to Cloudflare.

  1. Run install.sh to install pip and certbot. You may need to run this again after DSM upgrades.

  2. Setup cloudflare secret.