Used at different locations, like some ArgoWorkflow`s, AWX Jobs or Local development
The diffrent Inventories are located inside the ./src
subdirectory. More Informations about Ansible Inventiries at docs.ansible.com
Folder: ./local
export ANSIBLE_INVENTORY=$(pwd)/src/local/
Folder: ./minecraft
export HCLOUD_TOKEN=$(pass internet/hetzner.com/projects/minecraft/terraform-token) && \
export ANSIBLE_INVENTORY=$(pwd)/src/minecraft/prod/
virtualenv -p python3 ~/venvs/ansible-vagrant
source ~/venvs/ansible-vagrant/bin/activate
pip install -r requirements.txt
pre-commit install
ansible all -m ping
Testing a dedicated element, from the inventory.
ansible rpi2hifybarry -e ansible_user=pi -e ansible_ssh_user=pi -m ping