aboutsummaryrefslogtreecommitdiff
path: root/roles/pterodactyl_wings/tasks/main.yml
blob: 4e7d654de8474028f9f1bfa792a39277b2c87e86 (plain)
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
39
40
41
42
43
---
- name: Create dirs
  file:
    state: directory
    path: /etc/pterodactyl
  become: yes

- name: Check for changed cert
  command: /bin/true
  when: '{{ cert_changed | default(False) }}'
  notify:
    - Handle systemd

- name: Install packages
  apt:
    name: docker.io
  become: yes

- name: Enable docker
  systemd:
    name: docker
    enabled: yes
    state: started
  become: yes

- name: Download Wings
  get_url:
    url: 'https://github.com/pterodactyl/wings/releases/download/{{ wings_version }}/wings_linux_amd64'
    checksum: 'sha256:{{ wings_checksum }}'
    dest: /usr/local/bin/wings
    owner: root
    group: root
    mode: '755'
  become: yes
  notify:
    - Handle systemd

- name: Install unit file
  copy:
    src: 'wings.service'
    dest: '/etc/systemd/system/wings.service'
  become: yes
  notify: Handle systemd