September 2018
Beginner to intermediate
214 pages
5h 53m
English
If you are familiar with expect scripting, this is a module that is similar, but even simpler and on an even bigger scale. It is a way of dealing with interactive commands, such as password changing and SSH questions. An example of a playbook for changing a user password is as follows:
- name: change user1 password expect: command: passwd user1 responses: (?i)password: "Ju5tAn07herP@55w0rd":
This module requires pexpect and python to be installed on the remote host.
Read now
Unlock full access