Modify beszel install
This commit is contained in:
+20
-9
@@ -1,16 +1,27 @@
|
|||||||
---
|
---
|
||||||
- hosts: debianhosts
|
- hosts: debianhosts
|
||||||
tasks:
|
tasks:
|
||||||
- name: Install linux beszel agent
|
- name: change working directo
|
||||||
command: chdir=/tmp
|
become: yes
|
||||||
|
become_method: sudo
|
||||||
|
command: ‘pwd’
|
||||||
|
args:
|
||||||
|
chdir: /tmp
|
||||||
|
register: exec_result
|
||||||
|
- debug: var=exec_result.stdout_lines
|
||||||
|
|
||||||
- name: Get beszel agent install script
|
- name: Get beszel agent install script
|
||||||
ansible.builtin.command:: curl -sL https://get.beszel.dev -o /tmp/install-agent.sh
|
ansible.builtin.uri:
|
||||||
- name: Setup beszel agent install script
|
url: https://httpbin.org/post
|
||||||
ansible.builtin.command:: chmod +x /tmp/install-agent.sh
|
method: POST
|
||||||
- name: Execute beszel agent install script
|
src: /tmp/install-agent.sh
|
||||||
ansible.builtin.command:: /tmp/install-agent.sh -p 45876 -k "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEhA2xm3yiEqzi5dn8UerbbhZTkU538O1g1KF2d7LefT"
|
|
||||||
- name: Add beszel agent key
|
# - name: Setup beszel agent install script
|
||||||
ansible.builtin.command:: echo "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEhA2xm3yiEqzi5dn8UerbbhZTkU538O1g1KF2d7LefT" >> /root/.ssh/authorized_keys
|
# ansible.builtin.command:: chmod +x /tmp/install-agent.sh
|
||||||
|
# - name: Execute beszel agent install script
|
||||||
|
# ansible.builtin.command:: /tmp/install-agent.sh -p 45876 -k "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEhA2xm3yiEqzi5dn8UerbbhZTkU538O1g1KF2d7LefT"
|
||||||
|
# - name: Add beszel agent key
|
||||||
|
# ansible.builtin.command:: echo "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEhA2xm3yiEqzi5dn8UerbbhZTkU538O1g1KF2d7LefT" >> /root/.ssh/authorized_keys
|
||||||
|
|
||||||
- hosts: windowshosts
|
- hosts: windowshosts
|
||||||
tasks:
|
tasks:
|
||||||
|
|||||||
Reference in New Issue
Block a user