Add enable-beszel-agent.yaml

This commit is contained in:
2025-09-09 13:34:19 +02:00
parent 45969e3b8e
commit 39664186f5

View File

@@ -0,0 +1,22 @@
---
- name: Enable Beszel Agent
hosts: all:!beszel
become: true
tasks:
- name: Download agent with curl
ansible.builtin.command:
argv:
- curl
- -sL
- https://get.beszel.dev
- -o
- /tmp/install-agent.sh
register: curl_result
- name: Make agent installation script executable
ansible.builtin.file:
path: /tmp/install-agent.sh
mode: '0755'
- name: Register agent
ansible.builtin.command: /tmp/install-agent.sh -p 45876 -k "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAJOaJA9Xfb4c3P3jqcbzG35R0SisGGx5RSyHRsAHLLS" -t "507613ac-07f0-40bd-bfb3-d3ac394114da" -url "http://192.168.1.231:8090"