Creating a file locally

Hi,

Is there a way to ask ansible to create a file locally on the controller node where my playbook exists? I need to create a property file for further build process and it would be great if I could do it automatically via ansible based on the information from inventory.

To give a little more details. I use ansible to deploy my service on a remote cluster and once it’s deployed I need to upload various bits and pieces to it. The property file is used to identify the service endpoint address.

Cheers,
Jacek

using delegate_to: localhost, local_action or connection: local with file/copy/template should do the trick

Great, thanks!

Jacek