The M(expect) module executes a command and responds to prompts ,The given command will be executed on all selected nodes. It will not be processed through the shell, so variables like C($HOME) and operations like C("<"), C(">"), C("|"), and C("&") will not work

Options

namedescriptionrequiredchoices
command the command module takes command to run. true
creates 1. filename, when it already exists, this step will B(not) be run.
removes 1. filename, when it does not exist, this step will B(not) be run.
chdir cd into this directory before running the command
responses Mapping of expected string and string to respond with true
timeout Amount of time in seconds to wait for the expected strings
echo Whether or not to echo out your response strings

Author

Matt Martz (@sivel)