19 lines
505 B
Makefile
19 lines
505 B
Makefile
init: create_ansible_cfg create_venv install_pre_commit install_ansible_galaxy_modules
|
|
|
|
.ONESHELL:
|
|
create_ansible_cfg:
|
|
read -rp "Enter remote username: " REMOTE_USER
|
|
cp ansible.cfg.sample ansible.cfg
|
|
sed -i "s/REMOTE_USER/$$REMOTE_USER/g" ansible.cfg
|
|
|
|
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:
|
|
venv/bin/ansible-galaxy collection install community.general
|