small improvements

This commit is contained in:
uumas
2026-02-13 02:00:55 +02:00
parent 58ff2f6217
commit accd5ece14
3 changed files with 6 additions and 2 deletions

View File

@@ -1,5 +1,5 @@
---
- name: Hello world container
- name: Hello world service
ansible.builtin.import_role:
name: service
vars:
@@ -27,6 +27,9 @@
- network-online.target
service_container_env:
TZ: "Etc/UTC"
DB_HOST: hello-world-db
DB_USER: hello-world
DB_PASSWORD__FILE: /run/secrets/postgres
service_additional_containers:
- name: worker
# image: "docker.io/library/hello-world:latest"

View File

@@ -9,7 +9,7 @@
ip_range: "{{ network_range if network_range | length > 0 else omit }}"
quadlet_options: >-
{{
['Options=parent=' ~ ansible_default_ipv4.interface]
['Options=parent=' ~ ansible_facts.default_ipv4.interface]
if network_driver == 'macvlan' else []
}}
notify: Restart network service {{ network_name }}

View File

@@ -10,6 +10,7 @@
name: podman-auto-update.timer
state: started
enabled: true
ignore_errors: "{{ ansible_check_mode }}"
- name: Login to registries
containers.podman.podman_login: