summaryrefslogtreecommitdiff
path: root/docsite
diff options
context:
space:
mode:
authorJim Kleckner <jim@cloudphysics.com>2014-10-01 16:49:33 -0700
committerJim Kleckner <jim@cloudphysics.com>2014-10-01 16:49:33 -0700
commit93ea3695402db3654fd277300ba00376afc3a851 (patch)
tree6464f74a744d4ef524164e48567c2004560a7ddd /docsite
parent43eb821d3f6564fad6bac78cd420d7ddd1f65a3c (diff)
downloadansible-93ea3695402db3654fd277300ba00376afc3a851.tar.gz
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.
Diffstat (limited to 'docsite')
-rw-r--r--docsite/rst/intro_patterns.rst4
1 files changed, 4 insertions, 0 deletions
diff --git a/docsite/rst/intro_patterns.rst b/docsite/rst/intro_patterns.rst
index 41e9affc81..7830c97c49 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::