Use bridge networking

This commit is contained in:
2026-02-19 17:16:15 -05:00
parent e244c3f252
commit 0f7dba98eb

View File

@@ -15,11 +15,13 @@
- name: Create network for iot interface
containers.podman.podman_network:
name: iot
macvlan: ens19
interface_name: br5
ipam_driver: "none"
- name: Create network for infra interface
containers.podman.podman_network:
name: infra
macvlan: ens18
interface_name: br2
ipam_driver: "none"
- name: Create config directories
ansible.builtin.file:
path: "{{item}}"
@@ -36,8 +38,8 @@
restart_policy: "unless-stopped"
hostname: homeassistant1
network:
- iot
- infra
- iot
privileged: true
state: started
volumes:
@@ -50,8 +52,8 @@
recreate: true
restart_policy: "unless-stopped"
network:
- iot
- infra
- iot
privileged: true
state: started
volumes: