Compare commits
3 Commits
5da0939180
...
7007d8f123
Author | SHA1 | Date | |
---|---|---|---|
7007d8f123 | |||
319439c3ac | |||
383ffae171 |
@ -1,7 +1,7 @@
|
|||||||
---
|
---
|
||||||
# defaults file for podman
|
# defaults file for podman
|
||||||
|
|
||||||
podman_containers: {}
|
podman_containers: []
|
||||||
# Exemple:
|
# Exemple:
|
||||||
# - image: docker.io/wallabag/wallabag:latest
|
# - image: docker.io/wallabag/wallabag:latest
|
||||||
# name: wallbag
|
# name: wallbag
|
||||||
|
@ -21,12 +21,6 @@
|
|||||||
mode: u=rwX,g=rwX,o=
|
mode: u=rwX,g=rwX,o=
|
||||||
become: true
|
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
|
- name: Déployer le conteneur
|
||||||
ansible.builtin.template:
|
ansible.builtin.template:
|
||||||
src: podman-quadlet.container.j2
|
src: podman-quadlet.container.j2
|
||||||
|
@ -22,6 +22,14 @@ AutoUpdate=registry
|
|||||||
Volume={{ volume }}
|
Volume={{ volume }}
|
||||||
{% endfor %}
|
{% 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', []) %}
|
{% for port in container.get('ports', []) %}
|
||||||
PublishPort={{ port }}
|
PublishPort={{ port }}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
Loading…
Reference in New Issue
Block a user