From 93ea3695402db3654fd277300ba00376afc3a851 Mon Sep 17 00:00:00 2001 From: Jim Kleckner Date: Wed, 1 Oct 2014 16:49:33 -0700 Subject: [PATCH] Add doc of @filename in intro_patterns.rst I noticed that the @filename notation for the --limit argument was not conveniently described. This patch adds a simple example to the intro_patterns.rst file. --- docsite/rst/intro_patterns.rst | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docsite/rst/intro_patterns.rst b/docsite/rst/intro_patterns.rst index 41e9affc81c..7830c97c491 100644 --- a/docsite/rst/intro_patterns.rst +++ b/docsite/rst/intro_patterns.rst @@ -84,6 +84,10 @@ While we're jumping a bit ahead, additionally, you can add an exclusion criteria ansible-playbook site.yml --limit datacenter2 +And if you want to read the list of hosts from a file, prefix the file name with '@'. Since Ansible 1.2:: + + ansible-playbook site.yml --limit @retry_hosts.txt + Easy enough. See :doc:`intro_adhoc` and then :doc:`playbooks` for how to apply this knowledge. .. seealso::