mqtt: Bridge the bambulab printer

This commit is contained in:
polyfloyd 2024-07-14 14:54:58 +02:00
parent 4e75346365
commit 3ae4b05e17
6 changed files with 21 additions and 3 deletions

View file

@ -8,6 +8,12 @@
- mosquitto
- avahi-daemon
- name: Install bambulab cafile
# openssl s_client -showcerts -connect <ip>:8883 </dev/null | sed -n -e '/-.BEGIN/,/-.END/ p'
ansible.builtin.copy:
dest: "{{ mqtt_bambulab_cafile }}"
content: "{{ lookup('passwordstore', 'bambulab subkey=cafile') }}"
- name: Configure Mosquitto
ansible.builtin.template:
src: "{{ item }}"
@ -17,6 +23,7 @@
mode: 0644
notify: restart mosquitto
with_items:
- bambulab.conf
- internal.conf
- public-bridge.conf