29 lines
775 B
Plaintext

---
- hosts: localhost
vars:
password: rolaids
tasks:
- name: Create Matterbridge Config Volume
docker_volume:
name: matterbridge_config
- name: Create network interfaces 1/2
command: /usr/bin/ip addr add 192.168.1.63/24 dev enp2s0
ignore_errors: True
- name: Create network interfaces 2/2
command: /usr/bin/ip addr add 192.168.1.65/24 dev enp2s0
ignore_errors: True
- name: Start Matterbridge
docker_container:
name: matterbridge
hostname: matterbridge
recreate: yes
image: 42wim/matterbridge
volumes:
- matterbridge_config:/etc/matterbridge
memory: 1G
container_default_behavior: compatibility
restart_policy: unless-stopped