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.

15 lines
412 B

  1. ---
  2. - hosts: localhost
  3. gather_facts: false
  4. become: no
  5. vars:
  6. minimal_ansible_version: 2.8.0
  7. ansible_connection: local
  8. tasks:
  9. - name: "Check ansible version >={{ minimal_ansible_version }}"
  10. assert:
  11. msg: "Ansible must be {{ minimal_ansible_version }} or higher"
  12. that:
  13. - ansible_version.string is version(minimal_ansible_version, ">=")
  14. tags:
  15. - check