Commit 757574ee by Michael DeHaan

Make templating example make more sense

parent ada866be
...@@ -88,9 +88,9 @@ Templating ...@@ -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.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment