summaryrefslogtreecommitdiff
path: root/roles/elevate/media/tasks/main.yml
blob: 87815bbcb5e6cf6b0f903eae7ec0b92741b1093c (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
---
- name: install and configure samba
  import_tasks: samba.yml

- name: install and configure nextcloud
  import_tasks: nextcloud.yml

- name: install exfat 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
    state: present

- name: install exfat 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
    state: present

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