Sets up a full development environment through ansible on local or remote Debian based hosts without the need to manually copy files or perform configurations on the target machines.
-
Install the following dependencies:
python3 -m pip install ansible ansible-runner psutil
-
The target hosts should have ssh installed:
sudo apt install ssh
-
Get all target hosts IPs:
ip a | grep inet
# Local deployment
./deploy-local.sh
# Remote deployment
./deploy-remote.sh <target-ip> <target-username>
- Install the linter
pip3 install "ansible-lint"
- Run the linter before committing and fix all raised issues
ansible-lint
TODO: configure
pre-commit
to automate the last step (https://ansible-lint.readthedocs.io/en/latest/configuring/)