expect

Collection: builtin

Full Name: parallax.builtin.expect

Aliases: ansible.builtin.expect, expect

Synopsis

Manage expect

Parameters

NameTypeRequiredDefaultDescription
commandstringyesThe command module takes command to run
responsesmapyesMapping of expected string/regex and string to respond with
timeoutint30Amount of time in seconds to wait for the expected strings
createsstringA filename, when it already exists, this step will not be run
removesstringA filename, when it does not exist, this step will not be run
chdirstringChange directory before running command
echoboolfalseWhether or not to echo out your response strings

Example

- name: Example expect task
  expect:
    command: <your_command>
    responses: <your_responses>