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/latest.yml

19 lines
582 B

- name: Get the version response
ansible.builtin.uri:
url: "{{ besu_latest_version_url }}"
method: GET
status_code: 200
register: _besu_latest_response
- name: Extract the Besu version
ansible.builtin.set_fact:
_besu_version: "{{ _besu_latest_response.json.tag_name }}"
- name: Validate the Besu version
ansible.builtin.assert:
that: _besu_version is search("^[0-9]+\.[0-9]+\.[0-9]+(-RC[0-9])?$")
fail_msg: "Retrieved version [{{ _besu_version }}] is not a valid"
- name: Information
debug:
msg: "Latest Besu version is {{ _besu_version }}"