2023-09-26 19:50:11 +00:00
|
|
|
- name: Deploy app
|
|
|
|
hosts: cloud
|
|
|
|
gather_facts: false
|
|
|
|
vars:
|
2024-01-29 22:42:27 +00:00
|
|
|
container: nextcloud-aio-mastercontainer
|
2023-09-26 19:50:11 +00:00
|
|
|
tasks:
|
|
|
|
- name: Wait for connection
|
|
|
|
ansible.builtin.wait_for_connection:
|
|
|
|
timeout: 300
|
2024-01-29 22:42:27 +00:00
|
|
|
- name: Deploy master container
|
|
|
|
community.docker.docker_container:
|
|
|
|
image: nextcloud/all-in-one:latest
|
|
|
|
recreate: true
|
|
|
|
state: started
|
|
|
|
restart_policy: unless-stopped
|
|
|
|
init: true
|
|
|
|
name: "{{ container }}"
|
|
|
|
published_ports:
|
|
|
|
- 8080:8080
|
|
|
|
env:
|
|
|
|
NEXTCLOUD_UPLOAD_LIMIT: 16G
|
|
|
|
NEXTCLOUD_MAX_TIME: "7200"
|
|
|
|
NEXTCLOUD_ADDITIONAL_APKS: imagemagick ffmpeg
|
|
|
|
APACHE_PORT: "11000"
|
|
|
|
APACHE_IP_BINDING: "0.0.0.0"
|
|
|
|
TZ: Europe/London
|
|
|
|
AIO_DISABLE_BACKUP_SECTION: "true"
|
|
|
|
volumes:
|
|
|
|
- nextcloud_aio_mastercontainer:/mnt/docker-aio-config
|
|
|
|
- /var/run/docker.sock:/var/run/docker.sock:ro
|