summaryrefslogtreecommitdiff
path: root/roles/elevate/media/tasks/main.yml
blob: 77d53d23084aa24a131087e0bc554eb2882744bc (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
32
33
34
35
36
37
38
---
- name: install packages
  apt:
    name:
      - mdadm
      - nginx
      - python-docker
      - systemd-docker
      - python-openssl
      - samba
      - saswall
    state: present

- name: configure network
  import_tasks: network.yml

- name: configure samba
  import_tasks: samba.yml

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

- name: install and configure nginx
  import_role:
    name: nginx
  vars:
    nginx_vhosts:
      nextcloud:
        content: "{{ lookup('template', 'nextcloud-nginx.conf.j2') }}"
        acme: true
        hostnames: "{{ nextcloud_hostnames }}"

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