On 1/15/21 3:01 PM, [email protected] wrote: > Hi Racke, > > Thanks a lot for the update. > > I have corrected the playbook as mentioned below and ends up with different > error. > > --- > - hosts: all > name: > become: yes > tasks: > - name: Gathering Facts > ovirt.ovirt.ovirt_vm_info: > register: result > debug: > msg: "{{ result.ovirt_vms }}" > > > ERROR! 'debug' is not a valid attribute for a Play >
Please take the time and study the basics of Ansible playbooks.
Regards
Racke
> The error appears to be in '/home/testuser/ansible/test.yml': line 2, column
> 3, but may
> be elsewhere in the file depending on the exact syntax problem.
>
> The offending line appears to be:
>
> ---
> - hosts: all
> ^ here
>
> Regards,
> Jayan
>
> On Friday, January 15, 2021 at 7:19:07 PM UTC+5:30 [email protected] wrote:
>
> On 1/15/21 2:40 PM, [email protected] wrote:
> >
> > Hi Team,
> >
> > I am trying to gather the entire configuration details of the virtual
> machine from KVM hypervisor and created a
> playbook
> > as mentioned. Play book execution ends up with below mentioned error. I
> would highly appreciate if someone can
> guide me
> > in this.
> >
> > ---
> > - hosts: all
> > name:
> > become: yes
> > tasks:
> > - name: Gathering Facts
> > ovirt.ovirt.ovirt_vm_info:
> > register: result
> > debug:
> > msg: "{{ result.ovirt_vms }}"
> >
>
> You are mixing two tasks, debug needs to be an extra task.
>
> Regards
> Racke
>
> > ERROR! conflicting action statements: debug, ovirt.ovirt.ovirt_vm_info
> >
> > The error appears to be in '/home/testuser/ansible/test.yml': line 6,
> column 5, but may
> > be elsewhere in the file depending on the exact syntax problem.
> >
> > The offending line appears to be:
> >
> > tasks:
> > - name: Gathering Facts
> > ^ here
> >
> > Regards,
> > Jayan
> >
> > --
> > 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]
> <mailto:[email protected]>.
> > To view this discussion on the web visit
> >
> https://groups.google.com/d/msgid/ansible-project/b0160345-7996-4bf1-a5a6-a9200fd1fb77n%40googlegroups.com
>
> <https://groups.google.com/d/msgid/ansible-project/b0160345-7996-4bf1-a5a6-a9200fd1fb77n%40googlegroups.com>
> >
>
> <https://groups.google.com/d/msgid/ansible-project/b0160345-7996-4bf1-a5a6-a9200fd1fb77n%40googlegroups.com?utm_medium=email&utm_source=footer
>
> <https://groups.google.com/d/msgid/ansible-project/b0160345-7996-4bf1-a5a6-a9200fd1fb77n%40googlegroups.com?utm_medium=email&utm_source=footer>>.
>
>
>
> --
> Ecommerce and Linux consulting + Perl and web application programming.
> Debian and Sympa administration. Provisioning with Ansible.
>
> --
> 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]
> <mailto:[email protected]>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/53b7de82-0f7c-4317-8196-ac079e2b43cdn%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-project/53b7de82-0f7c-4317-8196-ac079e2b43cdn%40googlegroups.com?utm_medium=email&utm_source=footer>.
--
Ecommerce and Linux consulting + Perl and web application programming.
Debian and Sympa administration. Provisioning with Ansible.
--
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 view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/f2fe14d7-0309-cea7-2eca-4ac7a8388b50%40linuxia.de.
OpenPGP_signature
Description: OpenPGP digital signature
