Files
computer-playbook/roles/pkgmgr/tasks/01_core.yml

46 lines
1.1 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