I'm using ansible
to provision a server. One of the roles installs etckeeper
, which automatically creates the git repo and makes the first commit.
If many tasks run after that (which install via apt
or perform configuration changes), then the repo is a mess of commits - before I even start using the server.
I want one commit at the end of the ansible playbook, triggered via notify: etckeeper commit
.
Is that possible?
/etc
. But during provisioning, that results in dozens of useless commits, so I'm hoping there's a way to only commit once at the very end of the ansible playbook.