ansible-role-nextcloud/tasks/podman.yml

25 lines
734 B
YAML
Raw Normal View History

---
- name: Nextcloud | 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: Nextcloud | 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