From f2d80dbe150fbeadd7e86f62fec0c07a9c734cbd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Kucharczyk?= Date: Sun, 20 Jun 2021 22:29:11 +0200 Subject: [PATCH] portainer: add main task --- roles/portainer/tasks/main.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 roles/portainer/tasks/main.yml diff --git a/roles/portainer/tasks/main.yml b/roles/portainer/tasks/main.yml new file mode 100644 index 0000000..72729e2 --- /dev/null +++ b/roles/portainer/tasks/main.yml @@ -0,0 +1,12 @@ +- name: run container + docker_container: + name: 'portainer' + image: portainer/portainer-ce + networks: + - name: bridge + volumes: + - "/var/run/docker.sock:/var/run/docker.sock" + ports: + - "8000:8000" + - "9000:9000" + state: started \ No newline at end of file