Fix bugs in Ansible playbook