diff --git a/cluster.yml b/cluster.yml index 3b6297c5a5f..649f6549f6b 100644 --- a/cluster.yml +++ b/cluster.yml @@ -1,11 +1,11 @@ --- - hosts: localhost tasks: - - name: Check ansible version <2.7 + - name: "Check ansible version !=2.7.0" assert: msg: "Ansible V2.7.0 can't be used until: https://github.com/ansible/ansible/issues/46600 is fixed" that: - - ansible_version.string is version("2.7.0", "<") + - ansible_version.string is version("2.7.0", "!=") - ansible_version.string is version("2.5.0", ">=") tags: - check diff --git a/remove-node.yml b/remove-node.yml index aceed33acbd..2b2dacbabf1 100644 --- a/remove-node.yml +++ b/remove-node.yml @@ -1,7 +1,7 @@ --- - hosts: localhost tasks: - - name: Check ansible version <2.7 + - name: "Check ansible version !=2.7.0" assert: msg: "Ansible V2.7.0 can't be used until: https://github.com/ansible/ansible/issues/46600 is fixed" that: diff --git a/requirements.txt b/requirements.txt index fed7afe5052..1e3300434fb 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,4 @@ -ansible>=2.5.0,<2.7 +ansible>=2.5.0,!=2.7.0 jinja2>=2.9.6 netaddr pbr>=1.6 diff --git a/reset.yml b/reset.yml index de47fafcab5..a416dd7ee7d 100644 --- a/reset.yml +++ b/reset.yml @@ -1,11 +1,11 @@ --- - hosts: localhost tasks: - - name: Check ansible version <2.7 + - name: "Check ansible version !=2.7.0" assert: msg: "Ansible V2.7.0 can't be used until: https://github.com/ansible/ansible/issues/46600 is fixed" that: - - ansible_version.string is version("2.7.0", "<") + - ansible_version.string is version("2.7.0", "!=") - ansible_version.string is version("2.5.0", ">=") tags: - check diff --git a/scale.yml b/scale.yml index 1be060ce384..2dc55eceb21 100644 --- a/scale.yml +++ b/scale.yml @@ -1,11 +1,11 @@ --- - hosts: localhost tasks: - - name: Check ansible version <2.7 + - name: "Check ansible version !=2.7.0" assert: msg: "Ansible V2.7.0 can't be used until: https://github.com/ansible/ansible/issues/46600 is fixed" that: - - ansible_version.string is version("2.7.0", "<") + - ansible_version.string is version("2.7.0", "!=") - ansible_version.string is version("2.5.0", ">=") tags: - check diff --git a/upgrade-cluster.yml b/upgrade-cluster.yml index 8397341f4e8..27d4270236c 100644 --- a/upgrade-cluster.yml +++ b/upgrade-cluster.yml @@ -1,11 +1,11 @@ --- - hosts: localhost tasks: - - name: Check ansible version <2.7 + - name: "Check ansible version !=2.7.0" assert: msg: "Ansible V2.7.0 can't be used until: https://github.com/ansible/ansible/issues/46600 is fixed" that: - - ansible_version.string is version("2.7.0", "<") + - ansible_version.string is version("2.7.0", "!=") - ansible_version.string is version("2.5.0", ">=") tags: - check