- Ansible 2.15 or later
- Ubuntu 22.04 on the target host
- A user with sudo privileges on the target host
- A passwordless SSH connection to the target host
-
Clone this repository
-
Edit the
inventoryfile to include the IP address and username of the target host. You can include multiple hosts if you wish to set up multiple databases. -
Test the connection to the target host using the
pingmodule:ansible -i inventory all -m ping
-
Modify the
vars.ymlfile to include the desired database name, user, and password -
Modify the
seed.sqlfile to include the desired database schema -
Run the playbook:
ansible-playbook -i inventory playbook.yml