diff --git a/tasks/install-pkgs.yml b/tasks/install-pkgs.yml index 238a3de..1dd7718 100644 --- a/tasks/install-pkgs.yml +++ b/tasks/install-pkgs.yml @@ -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