You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

17 lines
446 B

- 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 }}"