Add pub network for link previews + fix logrotate
This commit is contained in:
parent
d05cb930ff
commit
264c8fc68e
3 changed files with 19 additions and 2 deletions
|
|
@ -11,6 +11,11 @@
|
|||
# ansible.posix.synchronize:
|
||||
# src: ./conduwuit-testing
|
||||
# dest: /var/opt/
|
||||
- name: Enable netavark dhcp daemon
|
||||
ansible.builtin.systemd:
|
||||
name: netavark-dhcp-proxy.socket
|
||||
enabled: true
|
||||
state: started
|
||||
- name: Copy containers
|
||||
ansible.posix.synchronize:
|
||||
src: ../containers/
|
||||
|
|
@ -26,7 +31,7 @@
|
|||
ansible.posix.synchronize:
|
||||
src: ../logrotate.d/
|
||||
dest: /etc/logrotate.d
|
||||
- name: find files with possible suspect line endings
|
||||
- name: find files with possible suspect line endings or perms
|
||||
ansible.builtin.find:
|
||||
paths: /etc/logrotate.d
|
||||
patterns: '*'
|
||||
|
|
@ -34,6 +39,10 @@
|
|||
- name: fix suspect line endings
|
||||
replace: path={{item.path}} regexp="\r"
|
||||
with_items: "{{ output.files }}"
|
||||
- name: fix logrotate permissions
|
||||
file: path={{item.path}} mode=644 user=root group=root
|
||||
with_items: "{{ output.files }}"
|
||||
become_user: root
|
||||
- name: Copy traefik config
|
||||
ansible.posix.synchronize:
|
||||
src: ../traefik/
|
||||
|
|
|
|||
|
|
@ -14,7 +14,8 @@ Image=dock.mau.dev/maubot/maubot:latest
|
|||
# ReadOnly=true
|
||||
Volume=/var/opt/maubot:/data:z,U
|
||||
AutoUpdate=registry
|
||||
# Network=web.network=
|
||||
# Network=web.network
|
||||
# Network=pub.network
|
||||
|
||||
Label="traefik.enable=true"
|
||||
Label="traefik.http.routers.maubot.rule=Host(`maubot.ellis.link`)"
|
||||
|
|
|
|||
7
servers/containers/pub.network
Normal file
7
servers/containers/pub.network
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
[Network]
|
||||
DisableDNS=false
|
||||
IPv6=true
|
||||
Subnet=10.89.1.0/24
|
||||
Gateway=10.89.1.1
|
||||
Driver=macvlan
|
||||
Options=parent=eno1
|
||||
Loading…
Add table
Reference in a new issue