summaryrefslogtreecommitdiff
path: root/roles/elevate/media/tasks/main.yml
blob: 58743fef92fa12ef6479e549665ae8c591732b42 (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
---
- 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_major_version | int) < 11) or (ansible_distribution == 'Ubuntu' and (ansible_distribution_major_version | int) < 22)
  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_major_version | int) >= 11) or (ansible_distribution == 'Ubuntu' and (ansible_distribution_major_version | int) >= 22)
  apt:
    name:
    - exfatprogs
    - ntfs-3g
    state: present

- name: install dstat script
  template:
    src: dstat.sh.j2
    dest: /usr/local/bin/dstat.sh
    mode: 0755