Do not install fuse unless necessary

Discussed here: https://github.com/spantaleev/matrix-docker-ansible-deploy/issues/1510
This commit is contained in:
Slavi Pantaleev
2022-01-08 14:14:46 +02:00
parent 548d495d81
commit 4e4fb98a65
7 changed files with 26 additions and 7 deletions

View File

@ -0,0 +1,23 @@
# This is for both CentOS 7 and 8
- name: Ensure fuse installed (CentOS)
yum:
name:
- fuse
state: latest
when: ansible_distribution == 'CentOS'
# This is for both Debian and Raspbian
- name: Ensure fuse installed (Debian/Raspbian)
apt:
name:
- fuse
state: latest
when: ansible_os_family == 'Debian'
- name: Ensure fuse installed (Archlinux)
pacman:
name:
- fuse3
state: latest
when: ansible_distribution == 'Archlinux'