Setup mev_relay and all required dependencies all in one server.
You'll need docker on the target system. Make sure to install it upfront.
Default variables are defined in defaults/main.yaml
You'll need docker and docker-compose to run this role. One way of installing docker could be via ansible galaxy with the following dependencies set within requirements.yaml
:
roles:
- src: geerlingguy.docker
version: 6.0.3
- src: geerlingguy.pip
version: 2.2.0
Your playbook could look like this:
- hosts: mev_relay
become: true
roles:
# Docker. Required dependency
- role: geerlingguy.docker
tags: [docker]
- role: geerlingguy.pip
pip_install_packages:
- name: docker
tags: [docker]
# Blockscout explorer
- role: mev_relay
tags: [mev_relay]