22 lines
713 B
YAML
22 lines
713 B
YAML
---
|
|
- 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 |