Skip to content

Commit

Permalink
Merge pull request #7 from snsandrine/AddconditionInstallPlugins
Browse files Browse the repository at this point in the history
Add condition to install plugins
  • Loading branch information
ndf-dw authored May 21, 2024
2 parents bf6c20e + 5ee37f7 commit 14894a1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tasks/plugins.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
get_url:
url: "{{ jenkins_updates_url }}/update-center.json?id=default&version={{ _jenkins_cmd_version.stdout }}"
dest: "{{ jenkins_home }}/updates/default.json"
force: true
owner: jenkins
group: jenkins
mode: 0440
Expand Down Expand Up @@ -75,7 +76,9 @@
url: "http://{{ jenkins_hostname }}:{{ jenkins_http_port }}{{ jenkins_url_prefix }}"
with_dependencies: "{{ jenkins_plugins_install_dependencies }}"
with_items: "{{ jenkins_plugins }}"
when: jenkins_admin_password | default(false)
when:
- jenkins_admin_password | default(false)
- item != ''
notify: restart jenkins
tags: ['skip_ansible_lint']
register: plugin_result
Expand Down

0 comments on commit 14894a1

Please sign in to comment.