Update with latest out of band changes

This commit is contained in:
Daniel Akulenok
2026-01-21 10:11:18 +01:00
parent 17fea0e02b
commit 6177112df8
6 changed files with 61 additions and 58 deletions

View File

@@ -1,18 +0,0 @@
---
# Ensure volumes are created
- name: Create bind mount directories from containers
ansible.builtin.file:
path: "{{ item.1.split(':')[0] }}"
state: directory
mode: '0755'
owner: root
group: root
loop: "{{ podman_containers | subelements('volumes', skip_missing=True) }}"
when:
- podman_create_volumes | bool
- item.1 is string
- item.1.split(':')[0] | dirname | length > 0
- item.1.split(':')[0].startswith('/') or item.1.split(':')[0].startswith('./')
loop_control:
label: "{{ item.0.name }} -> {{ item.1.split(':')[0] }}"

View File

@@ -26,13 +26,6 @@
- podman
- podman-networks
- name: Create volume directories
ansible.builtin.include_tasks: host_directories.yml
when: podman_create_volumes | bool
tags:
- podman
- podman-volumes
- name: Manage Podman volumes
ansible.builtin.include_tasks: volumes.yml
when: podman_volumes | length > 0

View File

@@ -30,3 +30,18 @@
enabled: false
state: stopped
when: not podman_enable_api_service
- name: Enable and start Podman auto-update service
ansible.builtin.systemd:
name: podman-auto-update.service
enabled: true
state: started
daemon_reload: true
when: podman_enable_auto_update
- name: Disable Podman auto-update service
ansible.builtin.systemd:
name: podman-auto-update.service
enabled: false
state: stopped
when: not podman_enable_auto_update