initial deployment

This commit is contained in:
xcad2k
2021-06-11 15:01:45 +02:00
parent 7e7cbc3d4a
commit 0ea81cf7c2
9 changed files with 166 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
---
- hosts: all
tasks:
# Create Portainer Volume
# --
#
- name: Create new Volume
community.docker.docker_volume:
name: portainer_data
# Deploy Portainer
# --
#
- name: Deploy Portainer
community.docker.docker_container:
container_name: portainer
image: "docker.io/portainer/portainer-ce"
ports:
- "8000:8000"
- "9000:9000"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- portainer_data:/data
restart_policy: always