diff options
author | Christian Pointner <equinox@spreadspace.org> | 2024-05-10 00:19:23 +0200 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2024-05-10 00:19:23 +0200 |
commit | 6abc58229f057a63e1799c834538d5fb139c6e22 (patch) | |
tree | 80c6639e569e2e83640d7fcce5b39d258aa6dd06 /roles/ws/base/tasks/main.yml | |
parent | make debian/ubuntu os release compare script much more generic (diff) |
migrate all os release comparisons to use new filter
Diffstat (limited to 'roles/ws/base/tasks/main.yml')
-rw-r--r-- | roles/ws/base/tasks/main.yml | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/roles/ws/base/tasks/main.yml b/roles/ws/base/tasks/main.yml index 23067abd..f562f6e3 100644 --- a/roles/ws/base/tasks/main.yml +++ b/roles/ws/base/tasks/main.yml @@ -45,7 +45,8 @@ state: present - name: install exfat packages for legacy installs - when: (ansible_distribution == 'Debian' and (ansible_distribution_major_version | int) < 11) or (ansible_distribution == 'Ubuntu' and (ansible_distribution_major_version | int) < 22) + when: (ansible_distribution == 'Debian' and (ansible_distribution_release | debian_release_compare('<', 'bullseye'))) or + (ansible_distribution == 'Ubuntu' and (ansible_distribution_release | ubuntu_release_compare('<', 'jammy'))) apt: name: - exfat-fuse @@ -53,7 +54,8 @@ state: present - name: install exfat packages for new installs - when: (ansible_distribution == 'Debian' and (ansible_distribution_major_version | int) >= 11) or (ansible_distribution == 'Ubuntu' and (ansible_distribution_major_version | int) >= 22) + when: (ansible_distribution == 'Debian' and (ansible_distribution_release | debian_release_compare('>=', 'bullseye'))) or + (ansible_distribution == 'Ubuntu' and (ansible_distribution_release | ubuntu_release_compare('>=', 'jammy'))) apt: name: - exfatprogs |