From 03de2224f83a8a2144780231fc67bb70a36c52f2 Mon Sep 17 00:00:00 2001 From: "Kenneth Benzie (Benie)" Date: Tue, 14 Feb 2023 16:30:41 +0000 Subject: [PATCH] Use old fzf install method on 22.04 and older --- roles/fzf/tasks/Debian.yaml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) 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