Solved package-manager bugs

This commit is contained in:
2025-04-01 17:33:19 +02:00
parent 7042f28a79
commit 213b74ff84
11 changed files with 22 additions and 15 deletions

View File

@@ -1,4 +1,11 @@
---
- name: Ensure GitHub host key is in known_hosts
known_hosts:
path: "~/.ssh/known_hosts"
name: github.com
key: "{{ lookup('pipe', 'ssh-keyscan -t ed25519 github.com | grep -v \"^#\"') }}"
become: yes
- name: Create installation directory for Kevin's Package Manager
file:
path: "{{ pkgmgr_install_path }}"
@@ -31,7 +38,7 @@
when: run_once_package_manager is not defined
- name: Run the Package Manager install command to create an alias for Kevins package manager
command: "{{ pkgmgr_install_command }}"
command: "make setup"
args:
chdir: "{{ pkgmgr_install_path }}"
become: yes

View File

@@ -15,6 +15,3 @@ pkgmgr_config_path: "{{pkgmgr_install_path}}/config/config.yaml"
# The directory where executable aliases will be installed (ensure it's in your PATH)
binaries_directory: "/usr/local/bin"
# The command to run to install/update the Package Manager's aliases
pkgmgr_install_command: "./main.py install pkgmgr"