Ansible
Test Release
---
- name: "test release"
hosts: localhost
connection: local
tasks:
#- debug:
# msg: "{{ ansible_facts }}"
- name: 'version >= 22.04'
shell: echo 'version >= 22.04'
when: ansible_facts['distribution_version'] is version("22.04", ">=")