Do not install fuse unless necessary
Discussed here: https://github.com/spantaleev/matrix-docker-ansible-deploy/issues/1510
This commit is contained in:
parent
548d495d81
commit
4e4fb98a65
|
@ -4,8 +4,6 @@
|
||||||
pacman:
|
pacman:
|
||||||
name:
|
name:
|
||||||
- python-docker
|
- python-docker
|
||||||
# TODO This needs to be verified. Which version do we need?
|
|
||||||
- fuse3
|
|
||||||
- python-dnspython
|
- python-dnspython
|
||||||
state: latest
|
state: latest
|
||||||
update_cache: yes
|
update_cache: yes
|
||||||
|
|
|
@ -21,7 +21,6 @@
|
||||||
yum:
|
yum:
|
||||||
name:
|
name:
|
||||||
- "{{ matrix_ntpd_package }}"
|
- "{{ matrix_ntpd_package }}"
|
||||||
- fuse
|
|
||||||
state: latest
|
state: latest
|
||||||
update_cache: yes
|
update_cache: yes
|
||||||
|
|
||||||
|
|
|
@ -28,7 +28,6 @@
|
||||||
yum:
|
yum:
|
||||||
name:
|
name:
|
||||||
- "{{ matrix_ntpd_package }}"
|
- "{{ matrix_ntpd_package }}"
|
||||||
- fuse
|
|
||||||
state: latest
|
state: latest
|
||||||
update_cache: yes
|
update_cache: yes
|
||||||
|
|
||||||
|
|
|
@ -29,7 +29,6 @@
|
||||||
apt:
|
apt:
|
||||||
name:
|
name:
|
||||||
- "{{ matrix_ntpd_package }}"
|
- "{{ matrix_ntpd_package }}"
|
||||||
- fuse
|
|
||||||
state: latest
|
state: latest
|
||||||
update_cache: yes
|
update_cache: yes
|
||||||
|
|
||||||
|
|
|
@ -29,7 +29,6 @@
|
||||||
apt:
|
apt:
|
||||||
name:
|
name:
|
||||||
- "{{ matrix_ntpd_package }}"
|
- "{{ matrix_ntpd_package }}"
|
||||||
- fuse
|
|
||||||
state: latest
|
state: latest
|
||||||
update_cache: yes
|
update_cache: yes
|
||||||
|
|
||||||
|
|
23
roles/matrix-base/tasks/util/ensure_fuse_installed.yml
Normal file
23
roles/matrix-base/tasks/util/ensure_fuse_installed.yml
Normal 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'
|
|
@ -1,3 +1,5 @@
|
||||||
|
- import_tasks: "{{ role_path }}/../matrix-base/tasks/util/ensure_fuse_installed.yml"
|
||||||
|
|
||||||
- name: Ensure Goofys Docker image is pulled
|
- name: Ensure Goofys Docker image is pulled
|
||||||
docker_image:
|
docker_image:
|
||||||
name: "{{ matrix_s3_goofys_docker_image }}"
|
name: "{{ matrix_s3_goofys_docker_image }}"
|
||||||
|
|
Loading…
Reference in a new issue