summaryrefslogtreecommitdiff
path: root/roles/elevate/media/tasks/main.yml
blob: f2d8b85ddc01609b322640085a6fdb88b808bc83 (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: configure nginx vhost
  import_role:
    name: nginx/vhost
  vars:
    nginx_vhost:
      name: 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