# Roles Concept in ansible 2.7 version

**URL:** <https://forum.ansible.com/t/roles-concept-in-ansible-2-7-version/29177>\
**Category:** Ansible Project\
**Created:** [December 3, 2018, 12:23pm UTC](https://forum.ansible.com/t/roles-concept-in-ansible-2-7-version/29177 "2018-12-03T12:23:36Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![VJ49](https://avatars.discourse-cdn.com/v4/letter/v/839c29/32.png) [@VJ49](https://forum.ansible.com/u/VJ49)\
**Post date:** [December 3, 2018, 12:23pm UTC](https://forum.ansible.com/t/roles-concept-in-ansible-2-7-version/29177/1 "2018-12-03T12:23:36Z")

</div>

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:

---

<div class="post-metadata">

**Author:** ![Jonathan\_Lozada\_De\_L](https://avatars.discourse-cdn.com/v4/letter/j/eb8c5e/32.png) [@Jonathan\_Lozada\_De\_L](https://forum.ansible.com/u/Jonathan_Lozada_De_L)\
**Post date:** [December 3, 2018, 12:48pm UTC](https://forum.ansible.com/t/roles-concept-in-ansible-2-7-version/29177/2 "2018-12-03T12:48:20Z")

</div>

Are you sing ansible lint? the issue might be spacing in your roles.

---

<div class="post-metadata">

**Author:** ![VJ49](https://avatars.discourse-cdn.com/v4/letter/v/839c29/32.png) [@VJ49](https://forum.ansible.com/u/VJ49)\
**Post date:** [December 3, 2018, 1:07pm UTC](https://forum.ansible.com/t/roles-concept-in-ansible-2-7-version/29177/3 "2018-12-03T13:07:43Z")

</div>

@Jonathan Lozada De La Matta … I am not using Ansible lint… I specified only one role there that to be in correct manner.

---

<div class="post-metadata">

**Author:** ![jborean](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/jborean/32/1525_2.png) [@jborean](https://forum.ansible.com/u/jborean)\
**Post date:** [December 3, 2018, 7:32pm UTC](https://forum.ansible.com/t/roles-concept-in-ansible-2-7-version/29177/4 "2018-12-03T19:32:00Z")

</div>

Can you share the actual output. I’m not aware of any syntax changes to roles. It sounds like the block issue is in the role you are calling and not the playbook.

---

<div class="post-metadata">

**Author:** ![VJ49](https://avatars.discourse-cdn.com/v4/letter/v/839c29/32.png) [@VJ49](https://forum.ansible.com/u/VJ49)\
**Post date:** [December 4, 2018, 4:53am UTC](https://forum.ansible.com/t/roles-concept-in-ansible-2-7-version/29177/5 "2018-12-04T04:53:01Z")

</div>

![error2.PNG](https://us1.discourse-cdn.com/ansible/original/2X/f/fd760a6e6bb815dcfb2441d82eae7e38767b9742.png)

Hi, This is the code… Have a look…

---

<div class="post-metadata">

**Author:** ![Jonathan\_Lozada\_De\_L](https://avatars.discourse-cdn.com/v4/letter/j/eb8c5e/32.png) [@Jonathan\_Lozada\_De\_L](https://forum.ansible.com/u/Jonathan_Lozada_De_L)\
**Post date:** [December 4, 2018, 11:40am UTC](https://forum.ansible.com/t/roles-concept-in-ansible-2-7-version/29177/6 "2018-12-04T11:40:53Z")

</div>

I would check the role called san and verify that the spacing for the block is correct. Look at the ansible documentation for an example of a block.

> **(attachments)**
>
> ![error2.PNG](https://us1.discourse-cdn.com/ansible/original/2X/f/fd760a6e6bb815dcfb2441d82eae7e38767b9742.png)

---

<div class="post-metadata">

**Author:** ![jborean](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/jborean/32/1525_2.png) [@jborean](https://forum.ansible.com/u/jborean)\
**Post date:** [December 4, 2018, 7:22pm UTC](https://forum.ansible.com/t/roles-concept-in-ansible-2-7-version/29177/7 "2018-12-04T19:22:32Z")

</div>

Agreed, we’ve seen your playbook I want to see the output when running Ansible as that will tell us where the syntax issue is.

---

<div class="post-metadata">

**Author:** ![sateeshazure](https://avatars.discourse-cdn.com/v4/letter/s/b782af/32.png) [@sateeshazure](https://forum.ansible.com/u/sateeshazure)\
**Post date:** [December 4, 2018, 9:26pm UTC](https://forum.ansible.com/t/roles-concept-in-ansible-2-7-version/29177/8 "2018-12-04T21:26:44Z")

</div>

Hi,

I am trying to setup communication between ansible and a windows server which is hosted in virtual machine manager.

I set host file and trying to communicate through basic authentication.  
I have open the ports 5985  
And allowedunecrypted : true

Do any one know about it.

I am getting error like  
Bad HTTP response from server . Code 404

Thanks in advance

---

<div class="post-metadata">

**Author:** ![Dick\_Visser](https://avatars.discourse-cdn.com/v4/letter/d/d9b06d/32.png) [@Dick\_Visser](https://forum.ansible.com/u/Dick_Visser)\
**Post date:** [December 5, 2018, 10:28pm UTC](https://forum.ansible.com/t/roles-concept-in-ansible-2-7-version/29177/9 "2018-12-05T22:28:19Z")

</div>

Hi Sateesh
