From a1bc79b6baf263f368d86ea2413912f902b4db97 Mon Sep 17 00:00:00 2001 From: Arnaud Nelissen Date: Tue, 9 Sep 2025 13:34:19 +0200 Subject: [PATCH] Add enable-beszel-agent.yaml --- playbooks/enable-beszel-agent.yaml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 playbooks/enable-beszel-agent.yaml diff --git a/playbooks/enable-beszel-agent.yaml b/playbooks/enable-beszel-agent.yaml new file mode 100644 index 0000000..af14e6b --- /dev/null +++ b/playbooks/enable-beszel-agent.yaml @@ -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" --auto-update true \ No newline at end of file