wouldn't having /etc/ansible/hosts satisfy your first requirement?
On 22 February 2014 16:25, Aaron Hunter <[email protected]> wrote: > I often want to create and share stand-alone, single plays (i.e., > some_task.yml). Ansible makes it very easy to automate tedious admin tasks > so I like to use it instead of old-school shell scripting. This works fine > of course but there is one small friction point in the form of the > inventory file. It would be cool if I could run a stand-alone play without > an inventory file (the host is already in the play) just be typing > 'ansible-playbook some_task.yml' > > My goal is also to publish short howtos as Ansible plays. People could > then just install Ansible, download the play and run it. No knowledge of > Ansible configuration required. Low friction. A lot of sites offer howtos > as a series of manual steps. Better that they provide Ansible plays > instead. > > One more thing, could you modify the 'unarchive' module to accept URLs in > the 'src' parameter? I tried to pass a URL (http://file.com/file.tar.gz) > but got an error. It's a common task to download a tar.gz file from the > web and then untar/unzip it. Perhaps others would find that useful as well. > > Thanks. > > > > -- > You received this message because you are subscribed to the Google Groups > "Ansible Project" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/ansible-project/40bc8c69-ee26-4ccc-b7af-04cd57e100dd%40googlegroups.com > . > For more options, visit https://groups.google.com/groups/opt_out. > -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAN4dctow-L%3DfPyhnTdQBCuJP_8uWAeM0Ko1m66gB40vQHJddog%40mail.gmail.com. For more options, visit https://groups.google.com/groups/opt_out.
