camac-suisse / ansible-role-camac

3 stars 11 forks source link

Backup keycloak on each ansible playbook run #9

Closed hairmare closed 6 years ago

hairmare commented 6 years ago

This dumps the complete keycloak database into a json file on each ansible run. It does so by starting wildfly on non-default ports in an async task with the proper args. The keycloak export job gets started in a fire-and-forget manner and the process terminates later when the backup has been made. This should work on both master and slave envionments since the exportruns as it's own process and does not rely on a running wildfly server to complete the export.

More info on this exporting business is in the keycloak docs.