eget: вынести роль в ansible-roles, декларативные пакеты
This commit is contained in:
+14
-66
@@ -1,78 +1,26 @@
|
||||
---
|
||||
- name: "Install eget"
|
||||
- name: "Install eget and pinned binaries"
|
||||
hosts: all
|
||||
|
||||
vars_files:
|
||||
- vars/secrets.yml
|
||||
- vars/vars.yml
|
||||
|
||||
# See: https://github.com/zyedidia/eget/releases
|
||||
|
||||
vars:
|
||||
eget_install_dir: "{{ bin_prefix }}"
|
||||
eget_bin_path: '{{ (eget_install_dir, "eget") | path_join }}'
|
||||
# Версии инструментов: https://github.com/<repo>/releases
|
||||
|
||||
tasks:
|
||||
- name: "Install eget"
|
||||
- name: "Install eget and tools"
|
||||
ansible.builtin.import_role:
|
||||
name: eget
|
||||
vars:
|
||||
eget_version: "1.3.4"
|
||||
eget_install_path: "{{ eget_bin_path }}"
|
||||
|
||||
- name: "Install rclone"
|
||||
ansible.builtin.command:
|
||||
cmd: >
|
||||
{{ eget_bin_path }} rclone/rclone --quiet --upgrade-only --to {{ eget_install_dir }} --asset zip
|
||||
--tag v1.73.4
|
||||
changed_when: false
|
||||
|
||||
- name: "Install restic"
|
||||
ansible.builtin.command:
|
||||
cmd: >
|
||||
{{ eget_bin_path }} restic/restic --quiet --upgrade-only --to {{ eget_install_dir }}
|
||||
--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.6
|
||||
changed_when: false
|
||||
|
||||
- name: "Install gobackup"
|
||||
ansible.builtin.command:
|
||||
cmd: >
|
||||
{{ eget_bin_path }} gobackup/gobackup --quiet --upgrade-only --to {{ eget_install_dir }}
|
||||
--tag v2.17.0
|
||||
changed_when: false
|
||||
|
||||
- name: "Install task"
|
||||
ansible.builtin.command:
|
||||
cmd: >
|
||||
{{ eget_bin_path }} go-task/task --quiet --upgrade-only --to {{ eget_install_dir }} --asset tar.gz
|
||||
--tag v3.48.0
|
||||
changed_when: false
|
||||
|
||||
- name: 'Install dust'
|
||||
ansible.builtin.command:
|
||||
cmd: >
|
||||
{{ 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
|
||||
eget_install_path: '{{ (bin_prefix, "eget") | path_join }}'
|
||||
eget_packages_to: "{{ bin_prefix }}"
|
||||
eget_packages:
|
||||
- {repo: "rclone/rclone", tag: "v1.73.4", asset: "zip"}
|
||||
- {repo: "restic/restic", tag: "v0.18.1"}
|
||||
- {repo: "creativeprojects/resticprofile", tag: "v0.32.0", asset: "^no_self_update"}
|
||||
- {repo: "aristocratos/btop", tag: "v1.4.6"}
|
||||
- {repo: "gobackup/gobackup", tag: "v2.17.0"}
|
||||
- {repo: "go-task/task", tag: "v3.48.0", asset: "tar.gz"}
|
||||
- {repo: "bootandy/dust", tag: "v1.2.4", asset: "gnu"}
|
||||
- {repo: "zellij-org/zellij", tag: "v0.43.1", asset: "no-web"}
|
||||
|
||||
Reference in New Issue
Block a user