![]() ![]() ![]() The print variables task will use the debug module to print the values of the two variables we defined in the vars section of the playbook. You would have thought it the result would. Explanation: This is an unexpected result. In order to use the login variable later, we need to know the type of value to expect. Im assuming youre using groupvars, so heres an example: groupvars/ all/ vaultedfile.yml nonvaultedfile.yml ansible-vault encrypt vaultedfile. ![]() Afterwards I want to make use of that variable in a couple of. Capturing the output of a command to a variable. "msg": "Username: sammy, Home dir: /home/sammy" Inside my playbook Id like to create a variable holding the output of an external command.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |