ansible/Makefile

19 lines
505 B
Makefile
Raw Normal View History

2023-03-07 13:36:42 +00:00
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:
2023-03-07 13:36:42 +00:00
venv/bin/ansible-galaxy collection install community.general