How to do that in Ansible?

This repo contains sample Ansible code snippets.