Ansible is a great tool to orchestrate repetitive tasks whether they are simple or very complex. There are two main roles that we are using for in this section: geerlingguy.docker and ecadlabs.tezos_node
Ansible Installation Guide
- Make sure you are in the
PROJECT_DIR\ansible\directory - Create the roles directory
mkdir ./roles- Install the geerlingguy.docker role
ansible-galaxy install geerlingguy.docker --roles-path ./roles- Install the ecadlabs.tezos_node role
ansible-galaxy install ecadlabs.tezos_node --roles-path ./roles- Create an inventory file in the ansible directory called
inventory.ymldirectory - Add the GCP VM instance external IP address to the inventory file.
- Run the Ansible playbook using the following command:
ansible-playbook ./playbook.yml -i ./inventory.yml- The ecadlabs.tezos_node role runs with elevated privileges so make sure that the python modules are installed in the correct python environment.
- Make sure that the
playbook.ymlfile contains the correct python runtime environment.