currently ansible allows only one 'yes' to be pushed to any question generated by config script.
I cannot run
multiple 'yes' for the prompts generated . it get stuck after first 'yes'
this is my task :
---
- name: place generated config file
template: src=config-template dest=/root/config-file owner=root group=root mode=0644
- name: snmp bash
template: src=run.bash dest=/root/run.bash owner=root group=root mode=0777
- name:
Run script
shell: /root/run.bash --> this will run the bash script directly on the VNF
register: myoutput
this is my template , will be run directly from VNF
run.bash
#!/bin/bash
yes y |
/opt/config/bin/Config -f /root/config-file --> this will run on the VNF to configure the system
any help please?