Add zellij
This commit is contained in:
@@ -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
|
||||
|
||||
13
tasks.py
13
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
|
||||
|
||||
Reference in New Issue
Block a user