2022-11-26 20:54:11 +00:00
|
|
|
# Makefile for initializing pre-commit hooks
|
|
|
|
|
|
|
|
all: init
|
|
|
|
|
2022-11-26 20:40:21 +00:00
|
|
|
init: create_venv install_pre_commit install_ansible_galaxy_modules
|
2022-11-26 08:15:18 +00:00
|
|
|
|
|
|
|
create_venv:
|
|
|
|
python3 -m venv venv
|
|
|
|
venv/bin/pip install -U pip
|
|
|
|
venv/bin/pip install ansible pre-commit
|
|
|
|
|
|
|
|
install_pre_commit:
|
|
|
|
venv/bin/pre-commit install
|
|
|
|
|
|
|
|
install_ansible_galaxy_modules:
|
2022-11-26 20:54:11 +00:00
|
|
|
venv/bin/ansible-galaxy collection install community.general
|