This repository has been archived on 2023-12-29. You can view files and clone it, but cannot push or open issues or pull requests.
pi-ansible/roles/docker/tasks/main.yml

34 lines
691 B
YAML
Raw Normal View History

2022-12-21 21:25:10 +00:00
---
- name: Add Docker PGP key
apt_key:
keyserver: keys.openpgp.org
id: 0x8D81803C0EBFCD88
state: present
- name: Add Docker apt repository
apt_repository:
repo: 'deb [arch=arm64] https://download.docker.com/linux/ubuntu focal stable'
state: present
update_cache: yes
- name: Install Docker
apt:
name: docker-ce
state: present
- name: Install Python bindings for Docker Compose
pip:
executable: pip3
name: docker-compose
state: present
- name: Create base directory for Docker volumes
file:
name: "{{ base_volume_folder }}"
state: directory
- name: Set up Docker services
import_tasks: services.yml
tags:
- services