Compare commits
3 Commits
5da0939180
...
7007d8f123
Author | SHA1 | Date | |
---|---|---|---|
7007d8f123 | |||
319439c3ac | |||
383ffae171 |
@ -1,7 +1,7 @@
|
||||
---
|
||||
# defaults file for podman
|
||||
|
||||
podman_containers: {}
|
||||
podman_containers: []
|
||||
# Exemple:
|
||||
# - image: docker.io/wallabag/wallabag:latest
|
||||
# name: wallbag
|
||||
|
@ -21,12 +21,6 @@
|
||||
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
|
||||
|
@ -22,6 +22,14 @@ 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 %}
|
||||
|
Loading…
Reference in New Issue
Block a user