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