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/

-- 
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 post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/cf4b982b-a556-40de-ba42-a73fe75684c3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to