17 lines
446 B
YAML
17 lines
446 B
YAML
- hosts: alpine
|
|
gather_facts: no
|
|
vars_files:
|
|
- "{{ playbook_dir }}/../test/myVault.yml"
|
|
vars:
|
|
- module: pexpect
|
|
- file: "{{ playbook_dir }}/scripts/input_script.sh"
|
|
|
|
tasks:
|
|
- include_tasks: tasks/pip_module_present.yml
|
|
- include_tasks: tasks/copy_file_to_tmp.yml
|
|
- name: Input test
|
|
expect:
|
|
command: /bin/ash /tmp/input_script.sh
|
|
responses:
|
|
(?i)user: "{{ user }}"
|
|
(?i)password: "{{ password }}"
|