25 lines
710 B
YAML
25 lines
710 B
YAML
---
|
|
- name: Create volumes
|
|
containers.podman.podman_volume:
|
|
state: present
|
|
name: "{{ item }}"
|
|
recreate: no
|
|
debug: no
|
|
loop: "{{ nextcloud_create_volumes }}"
|
|
|
|
# https://github.com/nextcloud/docker/blob/master/.examples/docker-compose/with-nginx-proxy/mariadb/fpm/docker-compose.yml
|
|
- name: Create container
|
|
containers.podman.podman_container:
|
|
debug: no
|
|
image: "{{ nextcloud_image }}:{{ nextcloud_version }}"
|
|
image_strict: yes
|
|
recreate: yes
|
|
state: present
|
|
name: "{{ nextcloud_name }}"
|
|
env: "{{ nextcloud_config }}"
|
|
volume: "{{ nextcloud_volumes }}"
|
|
ports: "{{ nextcloud_ports }}"
|
|
register: podman_output
|
|
|
|
- ansible.builtin.debug:
|
|
var: podman_output |