ansible/roles/docker/tasks/main.yml

119 lines
2.3 KiB
YAML

- name: Install required system packages
apt:
pkg:
- apt-transport-https
- ca-certificates
- curl
- software-properties-common
- python3-pip
- virtualenv
- python3-setuptools
- duf
state: latest
update_cache: true
- name: setup shell
import_tasks: shell.yml
- name: Add Docker GPG apt Key
apt_key:
url: https://download.docker.com/linux/ubuntu/gpg
state: present
- name: Add Docker Repository
apt_repository:
repo: deb https://download.docker.com/linux/debian bookworm stable
state: present
- name: Update apt and install docker-ce
apt:
name: docker-ce
state: latest
update_cache: true
- name: copy over ufw-docker.sh
ansible.builtin.copy:
src: ufw-docker.sh
dest: /usr/local/bin/ufw-docker.sh
owner: root
mode: 755
- name: execute ufw-docker.sh
ansible.builtin.shell: /usr/local/bin/ufw-docker.sh install
- name: make directories
ansible.builtin.file:
path: "{{ item }}"
state: directory
loop:
- /opt/stacks
- /opt/dockge
- name: copy dockge compose file
ansible.builtin.copy:
src: dockge-compose.yml
dest: /opt/dockge/dockge.yml
owner: root
mode: 644
- name: deploy dockge stack
community.docker.docker_compose_v2:
project_src: /opt/dockge
files:
- dockge.yml
- name: Install caddy
import_tasks: caddy.yml
tags: caddy
- name: Install gitea
import_tasks: gitea.yml
tags: gitea
- name: Install hoarder
import_tasks: hoarder.yml
tags: hoarder
- name: Install authentik
import_tasks: authentik.yml
tags: authentik
- name: Install gotosocial
import_tasks: gotosocial.yml
tags: gotosocial
#- name: Install grist
# import_tasks: grist.yml
# tags: grist
- name: Install tasksmd
import_tasks: tasksmd.yml
tags: tasksmd
- name: Install glance
import_tasks: glance.yml
tags: glance
- name: Install stirlingpdf
import_tasks: stirlingpdf.yml
tags: stirlingpdf
- name: Install pingvin
import_tasks: pingvin.yml
tags: pingvin
- name: Install postiz
import_tasks: postiz.yml
tags: postiz
- name: Install pinry
import_tasks: pinry.yml
tags: pinry
- name: Install audiobookshelf
import_tasks: audiobookshelf.yml
tags: audiobookshelf
- name: Install calibre
import_tasks: calibre.yml
tags: calibre