Ansible provisioning for localhost with Ubuntu GNOME
-
install Ansible: https://docs.ansible.com/ansible/latest/installation_guide/intro_installation.html
-
install roles
ansible-galaxy install -r requirements.yml
-
provision:
ansible-playbook site.yml -K
Or, save your password in
host_vars/localhost/login.yml
asansible_become_pass: xxxx
then
ansible-playbook site.yml