Ansible role that will install (& uninstall), configure and runs Besu: an enterprise Java Ethereum Client
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ansible-role-besu/tasks/main.yml

34 lines
880 B

---
- name: Ensure we have besu_version
fail:
msg: You must set "besu_version" for this role to run
when: besu_version is not defined
- name: Include OS and distribution specific variables
include_vars: "{{ item }}"
with_first_found:
- files:
- "{{ ansible_distribution|lower }}.yml"
- "{{ ansible_os_family|lower }}.yml"
skip: true
- name: Install besu
include_tasks: "install.yml"
- name: Run OS specific installation tasks
include_tasks: "{{ item }}"
with_first_found:
- files:
- "{{ ansible_distribution|lower }}/install.yml"
- "{{ ansible_os_family|lower }}/install.yml"
skip: true
- name: Get IP address to bind to if not provided
include_tasks: "network.yml"
when: not besu_host_ip
- name: Create config
include_tasks: "config.yml"
- name: Create Besu service
include_tasks: "service.yml"