--- - name: Install GnuPG apt: name: gnupg2 become: yes - name: Docker APT Key apt_key: url: 'https://download.docker.com/linux/debian/gpg' state: present become: yes - name: Install Docker APT Repository template: src: docker.list.j2 dest: /etc/apt/sources.list.d/docker.list become: yes register: install_repo - name: Update cache apt: update_cache: yes become: yes when: install_repo.changed - name: Install packages apt: name: - docker-ce - docker-ce-cli - containerd.io become: yes - 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: 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