Closed stroobl closed 1 year ago
I like the concept of mgmt hosts and we recommend it in conjunction with append-only repos.
Regarding the snippet: Don't you think this makes the role do too many things at once and it becomes a bit convoluted? Personally, I'd put it in my playbook. But hard to tell in this case.
I don't think it's possible to access the config.yaml.j2 template included in the role from a post_task in the playbook in an elegant way?
With my previous Borg backup role (without Borgmatic - it didn't exist at the time we started using Attic), I had a secured management host where I did the pruning for all hosts configured in append only mode. Would you be interested to add a feature to this role that makes it possible to copy the config to such a management host?
I already did some tests and something like this should work: