Use bridge networking
This commit is contained in:
@@ -15,11 +15,13 @@
|
|||||||
- name: Create network for iot interface
|
- name: Create network for iot interface
|
||||||
containers.podman.podman_network:
|
containers.podman.podman_network:
|
||||||
name: iot
|
name: iot
|
||||||
macvlan: ens19
|
interface_name: br5
|
||||||
|
ipam_driver: "none"
|
||||||
- name: Create network for infra interface
|
- name: Create network for infra interface
|
||||||
containers.podman.podman_network:
|
containers.podman.podman_network:
|
||||||
name: infra
|
name: infra
|
||||||
macvlan: ens18
|
interface_name: br2
|
||||||
|
ipam_driver: "none"
|
||||||
- name: Create config directories
|
- name: Create config directories
|
||||||
ansible.builtin.file:
|
ansible.builtin.file:
|
||||||
path: "{{item}}"
|
path: "{{item}}"
|
||||||
@@ -36,8 +38,8 @@
|
|||||||
restart_policy: "unless-stopped"
|
restart_policy: "unless-stopped"
|
||||||
hostname: homeassistant1
|
hostname: homeassistant1
|
||||||
network:
|
network:
|
||||||
- iot
|
|
||||||
- infra
|
- infra
|
||||||
|
- iot
|
||||||
privileged: true
|
privileged: true
|
||||||
state: started
|
state: started
|
||||||
volumes:
|
volumes:
|
||||||
@@ -50,8 +52,8 @@
|
|||||||
recreate: true
|
recreate: true
|
||||||
restart_policy: "unless-stopped"
|
restart_policy: "unless-stopped"
|
||||||
network:
|
network:
|
||||||
- iot
|
|
||||||
- infra
|
- infra
|
||||||
|
- iot
|
||||||
privileged: true
|
privileged: true
|
||||||
state: started
|
state: started
|
||||||
volumes:
|
volumes:
|
||||||
|
|||||||
Reference in New Issue
Block a user