Ansible refactoring