This basic playbook looks ok so can it be that the issue is in your role?

On Mon, 3 Dec 2018 at 13:18, VJ49 <jagadeeshvuppala1...@gmail.com> wrote:

> HI,
>       I am familiar with this ansible coding. Right now, ansible updated
> to 2.7. While running/checking the syntax of a code. I am getting error as
> a malformed block was encountered while loading a block.
> I found that problem is with ansible keyword "roles". In ansible 2.7,
> roles syntax changed partially. I am posting my code here. Can anyone help
> me to resolve this issue...
>
>
> Code:
> ---
> - name:  Deploy project
>   hosts: localhost
>   roles:
>     - san
>   vars_files:
>     - /var/lib/project-admin/answerfile.yml
>     - /var/lib/project/answerfile.yml
>
> The same code is working fine with ansible 2.0.0 version.
> Thank you,
>
> Regards
> Vuppala Jagadeesh
>
> --
> 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 post to this group, send email to ansible-project@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/bac305c8-e94d-4e13-bb3c-7b4ef671714e%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-project/bac305c8-e94d-4e13-bb3c-7b4ef671714e%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>
-- 
Sent from a mobile device - please excuse the brevity, spelling and
punctuation.

-- 
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 post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAL8fbwO7offE_PvyEN7TiyncGWGRVJvPdkSSoSmat%3Dsk1kvY6Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to