Skip to content

Commit

Permalink
'str' and 'int' comparison for ansible_version [fixes #1]
Browse files Browse the repository at this point in the history
  • Loading branch information
diegosouza authored Jun 22, 2020
1 parent 3dd925d commit 134304c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tasks/install-pkgs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
package:
name: "{{ freeipa_client_pkgs }}"
state: present
update_cache: "{{ omit if ((ansible_pkg_mgr == 'dnf') and (ansible_version is version('2.7', '<'))) else 'yes' }}"
update_cache: "{{ omit if ((ansible_pkg_mgr == 'dnf') and (ansible_version.full is version('2.7', '<'))) else 'yes' }}"
delay: 10
register: result
retries: 3
Expand Down

0 comments on commit 134304c

Please sign in to comment.