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:
parent
ada866be46
commit
757574ee03
1 changed files with 2 additions and 2 deletions
|
@ -88,9 +88,9 @@ Templating
|
|||
JSON files can be placed for template metadata using Jinja2. Variables
|
||||
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/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
|
||||
variables.
|
||||
|
|
Loading…
Reference in a new issue