diff --git a/cluster.yml b/cluster.yml index 3b6297c5a..649f6549f 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 aceed33ac..2b2dacbab 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 fed7afe50..1e3300434 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 de47fafca..a416dd7ee 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 1be060ce3..2dc55eceb 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 8397341f4..27d427023 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