Compare commits

..

No commits in common. "7007d8f1234e56ebf8900d09dc823ccc7ea5c4ee" and "5da093918014d6251daf5122f557f52a93d2c339" have entirely different histories.

3 changed files with 7 additions and 9 deletions

View File

@ -1,7 +1,7 @@
---
# defaults file for podman
podman_containers: []
podman_containers: {}
# Exemple:
# - image: docker.io/wallabag/wallabag:latest
# name: wallbag

View File

@ -21,6 +21,12 @@
mode: u=rwX,g=rwX,o=
become: true
- name: Créer le volume
containers.podman.podman_volume:
name: "{{ item.split(':')[0] }}"
when: container.get('volumes', []) | length > 0
loop: "{{ container.volumes }}"
- name: Déployer le conteneur
ansible.builtin.template:
src: podman-quadlet.container.j2

View File

@ -22,14 +22,6 @@ AutoUpdate=registry
Volume={{ volume }}
{% endfor %}
{% for mount in container.get('mounts', []) %}
{% if mount.get('options', []) | length > 0 %}
Mount=type={{ mount.type }},src={{ mount.source }},dst={{ mount.destination }},{{ mount.options | join(',') }}
{% else %}
Mount=type={{ mount.type }},src={{ mount.source }},dst={{ mount.destination }}
{% endif %}
{% endfor %}
{% for port in container.get('ports', []) %}
PublishPort={{ port }}
{% endfor %}