summaryrefslogtreecommitdiff
path: root/roles/elevate/media/tasks/main.yml
blob: 882e9639454df69c593d21eb411b109e377ee475 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
---
- 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