From dfd60149c01443107e0a0b384d699b644c1a29fa Mon Sep 17 00:00:00 2001 From: Lorin Hochstein Date: Wed, 25 Jul 2012 15:21:42 -0400 Subject: [PATCH] Add link to setup module when ansible vars first referenced. Add a cross-reference link to the setup module documentation, so users know where to look to find more detail about what ansible variables are available. --- rst/playbooks.rst | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/rst/playbooks.rst b/rst/playbooks.rst index fffbdf4ec8..aa3c3a0ca1 100644 --- a/rst/playbooks.rst +++ b/rst/playbooks.rst @@ -118,7 +118,10 @@ variables. Facter variables are prefixed with ``facter_`` and Ohai variables are prefixed with ``ohai_``. Ansible variables (0.3 and later) -are not surprisingly prefixed with ``ansible_``. So for instance, if I wanted +are not surprisingly prefixed with ``ansible_`` (See the :ref:`setup` module +documentation for a list of Ansible variables). + +So for instance, if I wanted to write the hostname into the /etc/motd file, I could say:: - name: write the motd