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/