Install pipx:
Install ansible-core:
Also install this to manage Windows boxes:
Generate a SSH key for the control node, and append its public key to managed node authorized_keys
files.
Create a directory for your first playbook and cd
into it. Create a basic inventory list in inventory.ini
and include all hostnames/IPs you want to manage with Ansible:
Finally, create a playbook called playbook.yml
:
Deploy it with ansible-playbook -i inventory.ini playbook.yml