diff --git a/roles/fzf/tasks/Debian.yaml b/roles/fzf/tasks/Debian.yaml index 5ef26cc..e03c610 100644 --- a/roles/fzf/tasks/Debian.yaml +++ b/roles/fzf/tasks/Debian.yaml @@ -1,6 +1,8 @@ --- -- name: install apt package - become: true - apt: - name: fzf - state: latest +- when: ansible_distribution == 'Ubuntu' and + ansible_distribution_version is version('22.04', '<=') + include_tasks: Debian-old.yaml + +- when: not (ansible_distribution == 'Ubuntu' and + ansible_distribution_version is version('22.04', '<=')) + include_tasks: Debian-apt.yaml