# Installing Jenkins plugins with their dependencies

**URL:** <https://forum.ansible.com/t/installing-jenkins-plugins-with-their-dependencies/27177>\
**Category:** Ansible Project\
**Created:** [April 3, 2018, 12:13pm UTC](https://forum.ansible.com/t/installing-jenkins-plugins-with-their-dependencies/27177 "2018-04-03T12:13:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![JiElPe-Fr38](https://avatars.discourse-cdn.com/v4/letter/j/85f322/32.png) [@JiElPe-Fr38](https://forum.ansible.com/u/JiElPe-Fr38)\
**Post date:** [April 3, 2018, 12:13pm UTC](https://forum.ansible.com/t/installing-jenkins-plugins-with-their-dependencies/27177/1 "2018-04-03T12:13:45Z")

</div>

Dear all,

I have created a jenkins role that creates a jenkins instance and add plugins.  
The task related to plugins is as follows :

`

`

- name: Install plugins  
jenkins\_plugin:  
group: “{{ jenkins\_process\_group }}”  
owner: “{{ jenkins\_process\_user }}”  
name: “{{ item }}”  
state: latest  
url: “http://{{ jenkins\_hostname }}:{{ jenkins\_http\_port }}{{ jenkins\_url\_prefix }}”  
url\_username: “{{ jenkins\_admin\_name }}”  
url\_password: “{{ jenkins\_admin\_password }}”  
with\_dependencies: yes

with\_items: “{{ jenkins\_plugins }}”  
notify: restart jenkins  
become: True  
become\_user: “{{ jenkins\_process\_user }}”

`

`  
All variables being known from files in vars or defaults.

Plugins listed in the `{{ jenkins_plugins }} list are those I actually want. No dependency is listed here as I was hoping that the`  
`with_dependencies: yes clause will install them.`  
`*It is absolutely not the case !*`  
`The listed plugins are installed (so there is no access rights or credentials problem), but the dependencies are not.`  
`When going to the WEB UI, I have a context page that suggests me to install dependencies.`

`I can't find a way to get rid off that... If someone could help ?`

`Best Regards`  
`J-L`

---

<div class="post-metadata">

**Author:** ![Biswadip\_Dutta](https://avatars.discourse-cdn.com/v4/letter/b/54ee81/32.png) [@Biswadip\_Dutta](https://forum.ansible.com/u/Biswadip_Dutta)\
**Post date:** [April 4, 2018, 8:52am UTC](https://forum.ansible.com/t/installing-jenkins-plugins-with-their-dependencies/27177/2 "2018-04-04T08:52:09Z")

</div>

> `state: latest`

Please remove this and try. Apparently this is an open issue on Github. [#24864](https://github.com/ansible/ansible/issues/24864)

---

<div class="post-metadata">

**Author:** ![JiElPe-Fr38](https://avatars.discourse-cdn.com/v4/letter/j/85f322/32.png) [@JiElPe-Fr38](https://forum.ansible.com/u/JiElPe-Fr38)\
**Post date:** [April 5, 2018, 8:07am UTC](https://forum.ansible.com/t/installing-jenkins-plugins-with-their-dependencies/27177/3 "2018-04-05T08:07:16Z")

</div>

Thanks a lot… After removing latest dependencies have been installed.  
So… let’s wait for the fix !

Best Regards  
J-L
