edit the inventory file according to your host names install ansible if you haven't already ansible-playbook -i inventory all playbook.yml --ask-become-pass