Add enable-beszel-agent.yaml
This commit is contained in:
22
playbooks/enable-beszel-agent.yaml
Normal file
22
playbooks/enable-beszel-agent.yaml
Normal 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" --auto-update true
|
||||
Reference in New Issue
Block a user