0 votes
in Ansible by

How can you use the Ansible module “set_fact” to create a new variable?

a) By providing the name and value of the variable as parameters to the module

b) By using a Jinja2 template to calculate the value of the variable

c) By copying an existing variable to create a new one

d) By using the “var” parameter to set the value of the variable

1 Answer

0 votes
by

Solution: a) By providing the name and value of the variable as parameters to the module

Explanation: The Ansible module “set_fact” can be used to create a new variable by providing the name and value of the variable as parameters to the module.

...