Dear Team
i have an issue. I have written a playbook that will perform and update of
the netbackup java.
############################################################
Expect section

    - name: Install
      shell: |
        set timeout -1
        log_file /tmp/nbexpect.log
        spawn /usr/openv/netbackup/bin/goodies/nbcomponentupdate -product
NetBackup -component jre -path /tmp/jdk1.8.0_341
        expect {
          "Do you wish to continue" {
            sleep 1
            send "y\n"
            exp_continue
            }

            }
################### Log waiting at prompt
spawn /usr/openv/netbackup/bin/goodies/nbcomponentupdate -product NetBackup
-component jre -path /tmp/jdk1.8.0_341
Command line: /usr/openv/netbackup/bin/goodies/nbcomponentupdate -product
NetBackup -component jre -path /tmp/jdk1.8.0_341

Java Runtime Envrionment(JRE) version installed with product 'Veritas
NetBackup'                                 : 1.8.0_331 (64bit)
Java Runtime Envrionment(JRE) version found at path '/tmp/jdk1.8.0_341'
                                     : 1.8.0_341 (64bit)

This utility will update the Java Runtime Envrionment(JRE) binaries present
at '/usr/openv/java/jre' path

This utility may start and stop all (or some) services depending upon the
present state of services.


Do you want to continue (Y[es]/N[o]):

>From the log file its waiting at the prompt to continue the install.

Some guidance on where am going wrong.

Kind Regards
Andrew Okullu
Mob:+256-772-418560, +256754213295
| Skype:aokullu | twitter: @aokullu | gtalk: aokullu

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CABcUpdpO7UkDCuCyGwZO3QEBUZWrmmZXsP6rVb_Ekqv%3DVJr9hg%40mail.gmail.com.

Reply via email to