Privacy Policy
Snippets index

  Check ansible version and don’t run the role if to old

---
# Check ansible version

- debug:
    msg: "ansible_version: {{ ansible_version.major }}"

- fail:
    msg="This playbook requires Ansible 2.x or greater."
  when: ansible_version.major < 2