Answer the question
In order to leave comments, you need to log in
How to automate interactive unloading of value from terminal using Ansible?
Hello!
The following problematic question was asked:
in the terminal, when creating a hash password, you need to enter the resulting value that is issued in the terminal into a file, then remove extra characters in the file, and use it in the future.
tell me how to do this with ansible. Which module is suitable for this and with what parameters. As I understand it, expect is used for interactive input, but how can I use it to redirect terminal output to a file?
Thank you!
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question