Provision multipass using ansible
Install the Docker Galaxy Extension for Ansible
ansible-galaxy collection install community.docker
Create ansible configuration files
touch inventory ansible.cfg
Put the server IP inside the inventory
file, since I’m using multipass, I can execute multipass info <vm_name>
to get this information
multipass info devbox
The inventory
file should look like this
192.168.122.157
The ansible.cfg
file should look like this
[defaults]
inventory = inventory
host_key_checking = False
deprecation_warnings = False
remote_user = ubuntu
private_key_file = ./ubuntu_key