ansible portainer and auto-update

This commit is contained in:
2024-07-19 15:01:30 +01:00
parent 632b1bdda7
commit 04ccdff78f
7 changed files with 82 additions and 11 deletions

View File

@@ -0,0 +1,2 @@
---
- include_tasks: portainer.yml

View File

@@ -0,0 +1,14 @@
- name: Portainer - Docker Container Setup
become: true
community.docker.docker_container:
name: portainer
image: portainer/portainer-ce
state: started
restart_policy: unless-stopped
pull: yes
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- portainer:/data
ports:
- "9443:9443"
- "8000:8000"