--- - name: install and configure samba import_tasks: samba.yml - name: install and configure nextcloud import_tasks: nextcloud.yml - name: install exfat and ntfs packages for legacy installs 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 - exfat-utils - ntfs-3g state: present - name: install exfat and ntfs packages for new installs 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 - ntfs-3g state: present - name: install dstat script template: src: dstat.sh.j2 dest: /usr/local/bin/dstat.sh mode: 0755