mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-09-08 11:17:17 +02:00
Details: - Added pkgmgr update task directly in pkgmgr role (pkgmgr pull --all) - Removed deprecated update-pkgmgr role and references - Removed deprecated update-pip role and references - Simplified update-compose by dropping update-pkgmgr include https://chatgpt.com/share/68bbeff1-27a0-800f-bef3-03ab597595fd
49 lines
1.2 KiB
YAML
49 lines
1.2 KiB
YAML
- name: Include dependencies
|
|
include_role:
|
|
name: '{{ item }}'
|
|
loop:
|
|
- dev-git
|
|
- dev-make
|
|
- dev-python-yaml
|
|
|
|
- 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: true
|
|
no_log: "{{ MASK_CREDENTIALS_IN_LOGS | bool }}"
|
|
|
|
- name: Create installation directory for Kevin's Package Manager
|
|
file:
|
|
path: "{{ PKGMGR_INSTALL_PATH }}"
|
|
state: directory
|
|
mode: '0755'
|
|
become: true
|
|
|
|
- name: Clone Kevin's Package Manager repository
|
|
git:
|
|
repo: "{{ PKGMGR_REPO_URL }}"
|
|
dest: "{{ PKGMGR_INSTALL_PATH }}"
|
|
version: "HEAD"
|
|
force: yes
|
|
become: true
|
|
|
|
- name: create config.yaml
|
|
template:
|
|
src: config.yaml.j2
|
|
dest: "{{ PKGMGR_CONFIG_PATH }}"
|
|
become: true
|
|
|
|
- name: Run the Package Manager install command to create an alias for Kevins package manager
|
|
shell: |
|
|
source ~/.venvs/pkgmgr/bin/activate
|
|
make setup
|
|
args:
|
|
chdir: "{{ PKGMGR_INSTALL_PATH }}"
|
|
executable: /bin/bash
|
|
become: true
|
|
|
|
- name: "Update all repositories with pkgmgr"
|
|
command: "pkgmgr pull --all"
|
|
when: MODE_UPDATE | bool |