mirror of
https://github.com/spantaleev/matrix-docker-ansible-deploy.git
synced 2025-10-27 05:17:56 +01:00
Reference Ansible facts via ansible_facts variable, not globally
This should bring better compatibility with future Ansible versions, one of which will some day drop support for accessing facts via the global namespace. Ref: https://github.com/geerlingguy/ansible-role-docker/pull/513
This commit is contained in:
@@ -6,11 +6,11 @@
|
||||
|
||||
# This is for both RedHat 7 and 8
|
||||
- ansible.builtin.include_tasks: "{{ role_path }}/tasks/ensure_fuse_installed_redhat.yml"
|
||||
when: ansible_os_family == 'RedHat'
|
||||
when: ansible_facts.os_family == 'RedHat'
|
||||
|
||||
# This is for both Debian and Raspbian
|
||||
- ansible.builtin.include_tasks: "{{ role_path }}/tasks/ensure_fuse_installed_debian.yml"
|
||||
when: ansible_os_family == 'Debian'
|
||||
when: ansible_facts.os_family == 'Debian'
|
||||
|
||||
- ansible.builtin.include_tasks: "{{ role_path }}/tasks/ensure_fuse_installed_archlinux.yml"
|
||||
when: ansible_os_family == 'Archlinux'
|
||||
when: ansible_facts.os_family == 'Archlinux'
|
||||
|
||||
Reference in New Issue
Block a user