On 24 March 2015 at 11:55, aditya patnaik <[email protected]> wrote:
> *- hosts: all*
>
> *- name: Add update to patch list*
> * command: xe patch-upload file-name=/root/PATCH/{{ update_filename }}*
> * register: uuid*
>
> *- name: Install update to all servers in the pool*
> * command: xe patch-pool-apply uuid={{ uuid.stdout }}*
>
>
> But I get below output:
>
> r*oot@LAB-1 plays]# ansible-playbook play2.yml --ask-pass*
> *SSH password:*
> *ERROR: register is not a legal parameter in an Ansible Playbook*
>
You are mixing up plays and tasks, the latter need to be a list indented
beneath the tasks: keywoard, which itself is on the same level as hosts:
--
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/CAEhzMJCjr%2B0tpk8So1NzPFnVijg%2Bv%3Dxgehe3382fnn2w3%2Bv%3Dyg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.