From 6350a1112d34d843df08bd9bb79ecf026806fa2a Mon Sep 17 00:00:00 2001 From: Anton Vakhrushev Date: Wed, 4 Mar 2026 20:17:35 +0300 Subject: [PATCH] Add zellij --- playbook-eget.yml | 25 ++++++++++++++++++++----- tasks.py | 13 +++++++++++-- 2 files changed, 31 insertions(+), 7 deletions(-) diff --git a/playbook-eget.yml b/playbook-eget.yml index 1197b6e..45534fe 100644 --- a/playbook-eget.yml +++ b/playbook-eget.yml @@ -23,7 +23,7 @@ ansible.builtin.command: cmd: > {{ eget_bin_path }} rclone/rclone --quiet --upgrade-only --to {{ eget_install_dir }} --asset zip - --tag v1.72.0 + --tag v1.73.1 changed_when: false - name: "Install restic" @@ -33,11 +33,19 @@ --tag v0.18.1 changed_when: false + - name: "Install resticprofile" + ansible.builtin.command: + cmd: > + {{ eget_bin_path }} creativeprojects/resticprofile --quiet --upgrade-only --to {{ eget_install_dir }} + --asset '^no_self_update' + --tag v0.32.0 + changed_when: false + - name: "Install btop" ansible.builtin.command: cmd: > {{ eget_bin_path }} aristocratos/btop --quiet --upgrade-only --to {{ eget_install_dir }} - --tag v1.4.5 + --tag v1.4.6 changed_when: false - name: "Install gobackup" @@ -51,12 +59,19 @@ ansible.builtin.command: cmd: > {{ eget_bin_path }} go-task/task --quiet --upgrade-only --to {{ eget_install_dir }} --asset tar.gz - --tag v3.45.5 + --tag v3.48.0 changed_when: false - name: 'Install dust' ansible.builtin.command: cmd: > - {{ bin_prefix }}/eget bootandy/dust --quiet --upgrade-only --to {{ bin_prefix }} --asset gnu - --tag v1.2.3 + {{ eget_bin_path }} bootandy/dust --quiet --upgrade-only --to {{ bin_prefix }} --asset gnu + --tag v1.2.4 + changed_when: false + + - name: 'Install zellij' + ansible.builtin.command: + cmd: > + {{ eget_bin_path }} zellij-org/zellij --quiet --upgrade-only --to {{ bin_prefix }} --asset no-web + --tag v0.43.1 changed_when: false diff --git a/tasks.py b/tasks.py index b7178c6..f20b5ad 100644 --- a/tasks.py +++ b/tasks.py @@ -68,13 +68,22 @@ def pl(ctx: Context) -> None: @task def ssh(ctx: Context) -> None: """SSH на удалённый сервер""" - ctx.run(f"ssh {_remote_user()}@{_remote_host()}", pty=True) + subprocess.run(f"ssh {_remote_user()}@{_remote_host()}", shell=True) + + +@task +def zj(ctx: Context) -> None: + """Запуск zellij на удаленном сервере""" + subprocess.run( + f"ssh {_remote_user()}@{_remote_host()} -t zellij attach --create main", + shell=True, + ) @task def btop(ctx: Context) -> None: """Запустить btop на удалённом сервере""" - ctx.run(f"ssh {_remote_user()}@{_remote_host()} -t btop", pty=True) + subprocess.run(f"ssh {_remote_user()}@{_remote_host()} -t btop", shell=True) @task