0 votes
in Ansible by
How can you use the Ansible module “template” to create a new file on a target system?

a) By providing the content of the file as a parameter to the module

b) By providing a Jinja2 template and variables to fill in the template

c) By copying an existing file to the target system and modifying it

d) By creating the file manually on the target system

1 Answer

0 votes
by
Solution: b) By providing a Jinja2 template and variables to fill in the template

Explanation: The Ansible module “template” can be used to create a new file on a target system by providing a Jinja2 template and variables to fill in the template.
...