The main requirements are:
- Install a centos 7 vm.
- Install docker on this vm.
- Install mariadb docker image.
This example is taken from the Ansible GCP guide
https://docs.ansible.com/ansible/latest/scenario_guides/guide_gce.html Some extra plugins need to be installed with the following command.
pip install requests google-auth python-requests
A service-account needs to be created and saved in a secure location
Next step is linked in the main playbook installing the latest docker version on the vm.
The final step is to install the database server.
ansible-playbook --ask-vault-pass create_vm.yml
password supersecretpassword