On 12. aug. 2016 20:25, [email protected] wrote:
My play is like:- name: configuring pdf harmony expect: command: ./install.sh responses: 'This will install pdfharmony on your system. Do you want to continue[y/N]?': y 'Do you agree with this copyright? [y/N]': y 'Now you must enter a valid registration number:': XXXX-XXXX-XXXX-XXXX-XXXX echo: yes args: chdir: '{{ dest_dir }}/pdfHarmony_20_L26_64' become: yes error when running this play:
<snip>
"without the specific agreement of Appligent. You may not reverse engineer, ", "\u001b[7m--More--\u001b[27m"]}
It's stops and wait at "--More--"
when installing manually, Here when you pass y to the first prompt, you get a copyright agreement which is more than a page and you will find --More-- at the end of the page and when keep on pressing enter last line of the agreement the second prompt(question appears) like What is the exact problem i am not able to understand
You need to handle the "--More--" in expect, but your responses doesn't. Add something like this '--More--': \r -- 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/9c3caca8-fff9-ea24-6772-f76757170bc7%40olstad.com. For more options, visit https://groups.google.com/d/optout.
