Once we install ansible, we can start playing with it right away in the localhost. In production, we run stuffs against remote servers but knowing to play with localhost makes it easy and handy when we are learning ansible. Writing a hello world task Lets first do it with ansible adhoc command and then convert the same into a playbook. ansible all -i "localhost," -c local -m shell -a 'echo hello w