Ansible playbook repo
Before you actually run a playbook, make sure you replace your user_name, also defined host in /etc/ansible/hosts
For exmaple: [host1] IP
user_name should have ssh key authntication (no password) and sudo right on the target host
$ ansible-playbook main.yml -v