Technotes

Technotes for future me

Ansible force ansible version

Ansible force ansible version

---
- hosts: all
  pre_tasks:
    - name: Verify Ansible meets Drupal VM's version requirements.
      assert:
        that: "ansible_version.full is version_compare('2.1', '>=')"
        msg: >
          "You must update Ansible to at least 2.1 to use this version of Drupal VM."          
Last updated on 31 Jan 2021
Published on 11 Dec 2019
Edit on GitHub