Update ansible/beszel_agent.yml

This commit is contained in:
2026-08-11 23:42:45 +02:00
parent 3b5483510a
commit 890f5af047

View File

@@ -51,7 +51,6 @@ tasks:
- not (skip | default(false)) - not (skip | default(false))
- host_is_online | default(false) - host_is_online | default(false)
ignore_unreachable: true ignore_unreachable: true
ignore_errors: true
block: block:
- name: Pobranie skryptu instalacyjnego Beszel - name: Pobranie skryptu instalacyjnego Beszel
ansible.builtin.get_url: ansible.builtin.get_url:
@@ -63,12 +62,13 @@ tasks:
ansible.builtin.shell: > ansible.builtin.shell: >
/tmp/install-agent.sh /tmp/install-agent.sh
-p "{{ beszel_port }}" -p "{{ beszel_port }}"
-k "{{ beszel_key }}" -k "{{ beszel_key | quote }}"
-t "{{ beszel_token }}" -t "{{ beszel_token }}"
-url "{{ beszel_url }}" -url "{{ beszel_url }}"
--auto-update --auto-update
register: beszel_install register: beszel_install
changed_when: "'Installation complete' in beszel_install.stdout or beszel_install.rc == 0" changed_when: "'Installation complete' in beszel_install.stdout or beszel_install.rc == 0"
ignore_errors: true
- name: Usunięcie pliku instalacyjnego z /tmp - name: Usunięcie pliku instalacyjnego z /tmp
ansible.builtin.file: ansible.builtin.file: