overleaf/install_user_controller.yaml

37 lines
684 B
YAML
Raw Normal View History

2024-04-12 02:30:56 +02:00
---
- name: install overleaf fedora controller
hosts: all
become: true
tasks:
- name: Create a volume
community.docker.docker_volume:
name: overleaf_python
state: present
- name: Create overleaf python container
community.docker.docker_container:
name: overleafpython
image: "python:3.11.9-alpine3.19"
state: started
recreate: no
restart_policy: always
command: sleep infinity
volumes:
- "overleaf_python:/data"
- "/var/run/docker.sock:/var/run/docker.sock"
networks:
- name: OverleafNet
comparisons:
networks: strict