48 lines
1.3 KiB
YAML
48 lines
1.3 KiB
YAML
---
|
|
- name: Configure container runtime defaults
|
|
community.routeros.api_find_and_modify:
|
|
ignore_dynamic: false
|
|
path: container config
|
|
find: {}
|
|
values:
|
|
tmpdir: tmp
|
|
|
|
- name: Configure container env lists
|
|
community.routeros.api_modify:
|
|
path: container envs
|
|
data: []
|
|
handle_absent_entries: remove
|
|
handle_entries_content: remove_as_much_as_possible
|
|
|
|
- name: Configure container mounts
|
|
community.routeros.api_modify:
|
|
path: container mounts
|
|
data:
|
|
- dst: /var/lib/tailscale
|
|
list: tailscale_state
|
|
src: /tailscale/state
|
|
handle_absent_entries: remove
|
|
handle_entries_content: remove_as_much_as_possible
|
|
|
|
- name: Configure containers
|
|
community.routeros.api_modify:
|
|
path: container
|
|
data:
|
|
- dns: 172.20.0.1
|
|
interface: veth-tailscale
|
|
logging: true
|
|
mountlists: tailscale_state
|
|
name: tailscale
|
|
remote-image: gitea.lumpiasty.xyz/lumpiasty/mikrotik-tailscale:stable
|
|
root-dir: tailscale/root
|
|
start-on-boot: true
|
|
- dns: 172.20.0.1
|
|
interface: veth-coredns
|
|
logging: true
|
|
name: coredns
|
|
remote-image: gitea.lumpiasty.xyz/lumpiasty/coredns-mikrotik:latest
|
|
root-dir: coredns/root
|
|
start-on-boot: true
|
|
handle_absent_entries: remove
|
|
handle_entries_content: remove_as_much_as_possible
|