jenkins_configure_proxy role missing in Ansible

21 views
Skip to first unread message

Maciej Gawinecki

unread,
Aug 17, 2017, 8:52:30 AM8/17/17
to Ansible Project
I have Ansible 2.4.0. I am trying to configure Jenkins proxy based on [Ansible Jenkins DevOps Roles documentation][1]:

    - 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?


  [1]: http://ansible-jenkins-roles.readthedocs.io/en/latest/

Kai Stian Olstad

unread,
Aug 18, 2017, 4:00:04 PM8/18/17
to ansible...@googlegroups.com
On 17. aug. 2017 14:52, Maciej Gawinecki wrote:
> 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
>
> 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?
>
>
> [1]: 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?


--
Kai Stian Olstad
Reply all
Reply to author
Forward
0 new messages