Make templating example make more sense

This commit is contained in:
Michael DeHaan 2012-02-27 21:13:44 -05:00
parent ada866be46
commit 757574ee03

View file

@ -88,9 +88,9 @@ Templating
JSON files can be placed for template metadata using Jinja2. Variables JSON files can be placed for template metadata using Jinja2. Variables
placed by 'setup' can be reused between ansible runs. placed by 'setup' can be reused between ansible runs.
* ansible -p "*" -n setup -a "ntp_server=192.168.1.1" * ansible -p "*" -n setup -a "favcolor=red ntp_server=192.168.1.1"
* ansible -p "*" -n template /srv/motd.j2 /etc/motd * ansible -p "*" -n template /srv/motd.j2 /etc/motd
* ansible -p "*" -n template /srv/foo.j2 /etc/foo * ansible -p "*" -n template /srv/ntp.j2 /etc/ntp.conf
Very soon, templates will be able to also include facter and ohai Very soon, templates will be able to also include facter and ohai
variables. variables.