Files
community.general/docs/json/template.json
2012-10-10 18:41:50 -04:00

56 lines
1.7 KiB
JSON

{
"requirements": null,
"description": [
"Templates are processed by the Jinja2 templating language (U(http://jinja.pocoo.org/docs/)) - documentation on the template formatting can be found in the Template Designer Documentation (U(http://jinja.pocoo.org/docs/templates/))."
],
"author": "Michael DeHaan",
"notes": [
"Since Ansible version 0.9, templates are loaded with C(trim_blocks=True)."
],
"module": "template",
"filename": "library/template",
"examples": [
{
"code": "template src=/mytemplates/foo.j2 dest=/etc/file.conf owner=bin group=wheel mode=0644",
"description": "Example from Ansible Playbooks"
}
],
"docuri": "template",
"short_description": "Templates a file out to a remote server.",
"now_date": "2012-10-09",
"options": {
"dest": {
"default": null,
"required": true,
"description": [
"Location to render the template to on the remote machine."
]
},
"src": {
"default": null,
"required": true,
"description": [
"Path of a Jinja2 formatted template on the local server. This can be a relative or absolute path."
],
"aliases": []
},
"backup": {
"default": "no",
"required": false,
"description": [
"Create a backup file including the timestamp information so you can get the original file back if you somehow clobbered it incorrectly."
],
"choices": [
"yes",
"no"
]
},
"others": {
"required": false,
"description": [
"all arguments accepted by the M(file) module also work here"
]
}
},
"ansible_version": "0.8"
}