This commit is contained in:
rene committed 2025-11-06 19:41:59 +01:00
1 parent 15a805abe9
commit 0337e23d0c
2 files changed
+3 -4

No files matched your search

+1 -1
View File
@@ -4,7 +4,7 @@
- import_tasks: global_handlers/global_handlers.yml - import_tasks: global_handlers/global_handlers.yml
connection: local connection: local
vars_files: vars_files:
- "os_vars/{{ ansible_distribution | lower }}.yml" - "{{ lookup('first_found', ['os_vars/' + (ansible_distribution | lower) + '.yml'], errors='ignore') }}"
become: true become: true
vars: vars:
ansible_reboot_cooldown_minutes: 15 # Cooldown in Minuten ansible_reboot_cooldown_minutes: 15 # Cooldown in Minuten
+2 -3
View File
@@ -50,8 +50,7 @@
group: root group: root
- name: Run Portainer container with Podman - name: Run Portainer container with Podman
warn: false # Suppresses the warning that the 'command' module is used for operations that should be idempotent ansible.builtin.command:
module: ansible.builtin.command
cmd: > cmd: >
podman run -d podman run -d
--name {{ portainer_name }} --name {{ portainer_name }}
@@ -62,8 +61,8 @@
-v /run/podman/podman.sock:/var/run/docker.sock # Map Podman socket to Docker socket path for Portainer compatibility -v /run/podman/podman.sock:/var/run/docker.sock # Map Podman socket to Docker socket path for Portainer compatibility
-v {{ portainer_data_path }}:/data -v {{ portainer_data_path }}:/data
{{ portainer_image }} {{ portainer_image }}
args:
creates: "{{ portainer_data_path }}/portainer.db" # Checks if the Portainer database file exists to ensure idempotency creates: "{{ portainer_data_path }}/portainer.db" # Checks if the Portainer database file exists to ensure idempotency
warn: false # Suppresses the warning that the 'command' module is used for operations that should be idempotent
# Verbesserungsvorschlag: Für eine robustere Container-Verwaltung könnte das Modul # Verbesserungsvorschlag: Für eine robustere Container-Verwaltung könnte das Modul
# `community.general.podman_container` verwendet werden, falls die `community.general`-Collection installiert ist. # `community.general.podman_container` verwendet werden, falls die `community.general`-Collection installiert ist.
# Beispiel: # Beispiel: