# jenkins\_configure\_proxy role missing in Ansible

**URL:** <https://forum.ansible.com/t/jenkins-configure-proxy-role-missing-in-ansible/25276>\
**Category:** Ansible Project\
**Created:** [August 17, 2017, 12:52pm UTC](https://forum.ansible.com/t/jenkins-configure-proxy-role-missing-in-ansible/25276 "2017-08-17T12:52:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Maciej\_Gawinecki](https://avatars.discourse-cdn.com/v4/letter/m/58f4c7/32.png) [@Maciej\_Gawinecki](https://forum.ansible.com/u/Maciej_Gawinecki)\
**Post date:** [August 17, 2017, 12:52pm UTC](https://forum.ansible.com/t/jenkins-configure-proxy-role-missing-in-ansible/25276/1 "2017-08-17T12:52:30Z")

</div>

I have Ansible 2.4.0. I am trying to configure Jenkins proxy based on [Ansible Jenkins DevOps Roles documentation](http://ansible-jenkins-roles.readthedocs.io/en/latest/):

- hosts: master  
roles:
- jenkins\_configure\_proxy:  
jenkins\_home: “{{ jenkins\_home }}”  
proxy\_host: “{{ proxy\_host }}”  
proxy\_port: “{{ proxy\_port }}”  
become: true  
environment: “{{proxy\_env}}”

When trying to execute ansible\_playbook I get:

ERROR! role definitions must contain a role name

The error appears to have been in ‘/Users/me/projects/jenkins/jenkins.yml’: line 10, column 7, but may  
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:

roles:

- jenkins\_configure\_proxy:  
^ here

That pretty strange, because other roles like `jenkins_plugin` work fine.

What am I doing wrong?

---

<div class="post-metadata">

**Author:** ![Kai\_Stian\_Olstad](https://avatars.discourse-cdn.com/v4/letter/k/e19adc/32.png) [@Kai\_Stian\_Olstad](https://forum.ansible.com/u/Kai_Stian_Olstad)\
**Post date:** [August 18, 2017, 7:59pm UTC](https://forum.ansible.com/t/jenkins-configure-proxy-role-missing-in-ansible/25276/2 "2017-08-18T19:59:35Z")

</div>

> I have Ansible 2.4.0. I am trying to configure Jenkins proxy based on  
> [Ansible Jenkins DevOps Roles documentation][1]:

\<snip /\>

> ERROR! role definitions must contain a role name
> 
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The error appears to have been in  
> '/Users/me/projects/jenkins/jenkins.yml': line 10, column 7, but may  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;be elsewhere in the file depending on the exact syntax problem.  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The offending line appears to be:  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;roles:  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;- jenkins\_configure\_proxy:  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;^ here
> 
> That pretty strange, because other roles like `jenkins_plugin` work fine.
> 
> What am I doing wrong?
> 
> &nbsp;&nbsp;&nbsp;[1]: [http://ansible-jenkins-roles.readthedocs.io/en/latest/](http://ansible-jenkins-roles.readthedocs.io/en/latest/)

This is not the Ansible documentation, so probably a third party module perhaps that you need to install?
