use ansible command machine as packager

Hello,

I would like to use ansible to create/prepare packages (yum packages, .tgz files, …) before they are deployed to other hosts.

do you think it is a good idea to have 127.0.0.1 in the inventory and target this host with a packager play ?

I am interested in knowing how others are solving their packaging needs

Thanks
Jerome

It’s fine to put localhost in inventory, just be sure you don’t ever address the “all” group and instead select a group of hosts that describe what you want to manage.

We have an open pull request to make localhost implicit in inventory just for plays that say “hosts: localhost” so you don’t even have to add this.