I have fresh installed Ansible AWX and downloaded projects from git using SCM. I have created users, templates and inventories as well. But after I reboot the server everything was gone? I have started all docker images and access the AWX GUI but all my changes was reset. Is there any tasks I need to do to make those changes persistent?
If you did a standalone docker install it will have created a persistent directory to store data in for the postgres container. That defaults to /tmp/pgdocker. If your /tmp is cleared on reboot then you will indeed lose data after a reboot. I’d recommend moving that to another location and/or making sure you backup your data.
Can I change the default dir to not use /tmp/pgdocker after I have installed the standalone docker? What configuration path should I edit?
You can, it’s in the inventory file… please read through the install documentation: https://github.com/ansible/awx/blob/devel/INSTALL.md#inventory-variables
We configure the postgres container using an environment variable… so alternatively you can change the configuration of the running container if that will work.
Or move the directory to where you want it to be, remove the existing containers, and re-install pointing at that directory. It will preserve your data.