small improvements
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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 }}
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user