On 16.11.2017 12:15, [email protected] wrote:
Step 6 is regarding an IBM command line interface configuration.
When i perform the manual configuration after all it has been installed,
and the service up, i need to access to the CLI using the following
command:

*$ telnet 0 2200*

then a login prompt is shown:

login: username
password: password

here i need to set the default username and password. After that i get the
following message:

****************************************************************
ATTENTION: Use care when making your selections for operational
modes. If you select an incorrect mode for your environment,
the only way to change an operational mode is to reinitialize
the appliance.

Press any key to continue.
****************************************************************

here i should press enter. Then a new password will be required so i need
to write the new password the first time and repeat it another time.

i tried with the previous code but i get always the same error. Probably i'm not doing the right things in my playbook, do you have any suggestion?

This should be the correct syntax.

  - name: Launch the CLI first time
    expect:
      command: telnet 0 2200
      responses:
        login: username
        password: password
        Press any key to continue\.: ""

--
Kai Stian Olstad

--
You received this message because you are subscribed to the Google Groups "Ansible 
Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/8a73657745d1ec2d74e0b5007ea43810%40olstad.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to