1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

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.