Comment by alemanek
I wrote an ansible pipeline that pushes config backups, json and ndjson, to a GitHub repo. It just uses the “git” cli tool to clone the repo, commit any changes, and push those commits to “origin/main”.
Only piece that you have to be a bit careful with the guarding credentials or token you will be using for the “git” commands. In my case we use Hashicorp Vault for secrets management so I can just checkout the token to use from there.
Got it. CI/CD tools coming up often as a possible solve. Time to do some YT vids!
Appreciate the guidance on credentials, fully agree on using a vault.