Hello all!
I have a questions regarding capturing return values and writing them to a file. Specifically, my use-case is in cloud provisioning … I am standing up any number of VMs. When the VM is created, and only when it is created, a return value held by .password is available. I can print the instance variable in a debug message. But my question is, how can I capture it automatically for future connections to this server without writing to paper? How can I automate, if the variable .password exists, so that it is written (maybe to vault?) and then used for subsequent plays for use in, I believe, ‘ansible_become_pass’?
Thank you!
-dave