How do you define a variable in an Ansible playbook?
Share
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Please Disable the AdBlocker to Continue to the site.
To define a variable in an Ansible playbook, use the “vars” keyword followed by the variable name and its value in YAML format. For example:
makefileCopy code
vars:
my_var: “Hello, world!”