Skip to content

Commit

Permalink
fix ansible version check (#1611)
Browse files Browse the repository at this point in the history
  • Loading branch information
ceclinux committed Dec 4, 2020
1 parent de3bb94 commit f888369
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
docker_image:
name: busybox:latest
pull: yes
when: ansible_version.full < "2.8.0"
when: ansible_version.full is version_compare('2.8.0', '<')

- name: Pull busybox:latest docker image (Ansible >= '2.8.0')
docker_image:
name: busybox:latest
source: pull
when: ansible_version.full >= "2.8.0"
when: ansible_version.full is version_compare('2.8.0', '>=')
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
- name: "Checking that Ansible version >= '2.4.0'"
assert:
that: ansible_version.full >= "2.4.0"
that: ansible_version.full is version_compare('2.4.0', '>=')

- import_tasks: base.yml

Expand Down

0 comments on commit f888369

Please sign in to comment.