Hi, Can you try this. Like Serge mentioned, your indentation is probably wrong
http://paste.ubuntu.com/10675537/ On Wed, Mar 25, 2015 at 7:51 AM, aditya patnaik <[email protected]> wrote: > Thank you Serge van Ginderachter for replying :-) > > > But is still get the error after adding tasks > Is there a better way to do it ? > > > [root@LAB-1 plays]# cat play2.yml > --- > - > hosts: all > > tasks: > - > name: Add update to patch list > command: xe patch-upload file-name=/root/PATCH/{{ update_filename }} > register: uuid > - > name: Install update to server > command: xe patch-pool-apply uuid={{ uuid.stdout }} > > [root@LAB-1 plays]# ansible-playbook play2.yml --ask-pass > > SSH password: > ERROR: register is not a legal parameter in an Ansible Playbook > > -- > 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/f3c0b064-831c-41d5-9cb8-8e366d0cd4c3%40googlegroups.com > <https://groups.google.com/d/msgid/ansible-project/f3c0b064-831c-41d5-9cb8-8e366d0cd4c3%40googlegroups.com?utm_medium=email&utm_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > -- 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/CAO3_%2BAGiNg6vrVryomKabiR450Xn6HaCJ%3D%3DVi4pZNpsTiL1Q5Q%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
