Just go through a few tutorials of Ansible and am trying to see if I can use it to replace our ‘tcl expect’ template engine in house.
We have an internal server inside a isolated domain that have ‘root’ access to most of the internal boxes from other domains.
The template engine’s job is to execute commands supplied in a file and run as uid that will be input to the template engine also. The template engine either successfully run all commands or stop at the first failed command and return error and output.
a simple test like below hang forever.