Just a handy ansible setup I use to quickly put together a VM with tools I use.
Clean install of Ubuntu 22.04 64-bit Desktop or server into a VM.
sudo apt-get update
sudo apt-get install --assume-yes ansible git
The comma at the end of inventory , is important.
sudo ansible-pull --url https://github.com/rbeede/ansible.git --inventory `hostname`, --tags all,gui pentest-machine-playbook.yml
ansible-playbook --connection=local --inventory=localhost, --tags all,gui pentest-machine-playbook.yml
sudo ansible-pull --url https://github.com/rbeede/ansible.git --inventory `hostname`, --tags all pentest-machine-playbook.yml