Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

README.md

The Ansible Section

Why Ansible?

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

Prerequisites

Ansible Installation Guide

Steps to create a Docker instance and Tezos node with ansible

  1. Make sure you are in the PROJECT_DIR\ansible\ directory
  2. Create the roles directory
mkdir ./roles
  1. Install the geerlingguy.docker role
ansible-galaxy install geerlingguy.docker --roles-path ./roles
  1. Install the ecadlabs.tezos_node role
ansible-galaxy install ecadlabs.tezos_node --roles-path ./roles
  1. Create an inventory file in the ansible directory called inventory.yml directory
  2. Add the GCP VM instance external IP address to the inventory file.
  3. Run the Ansible playbook using the following command:
ansible-playbook ./playbook.yml -i ./inventory.yml

Potential Gotchas

  • 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.yml file contains the correct python runtime environment.