Method: QB.check_ansible_version

Defined in:
lib/qb/version.rb

.check_ansible_versionObject

Check that the Ansible version is not less than MIN_ANSIBLE_VERSION.

Raises:



86
87
88
89
90
91
92
93
94
95
# File 'lib/qb/version.rb', line 86

def self.check_ansible_version
  if ansible_version < QB::MIN_ANSIBLE_VERSION
    raise QB::AnsibleVersionError, NRSER.squish(
      "        QB \#{ QB::VERSION } requires Ansible \#{ QB::MIN_ANSIBLE_VERSION },\n        found version \#{ version_str } at \#{ `which ansible` }\n      END\n    )\n  end\nend\n"