Browse Source

Switch variable name

Signed-off-by: Paul Belanger <pabelanger@redhat.com>
changes/50/278650/1
Paul Belanger 3 years ago
parent
commit
b16717461c
2 changed files with 4 additions and 4 deletions
  1. 1
    1
      defaults/main.yaml
  2. 3
    3
      tasks/config.yaml

+ 1
- 1
defaults/main.yaml View File

@@ -12,4 +12,4 @@
12 12
 # License for the specific language governing permissions and limitations
13 13
 # under the License.
14 14
 ---
15
-jenkins_plugins_list: []
15
+jenkins_plugins_manager: []

+ 3
- 3
tasks/config.yaml View File

@@ -14,9 +14,9 @@
14 14
 ---
15 15
 - name: Download
16 16
   get_url:
17
-    dest: /var/lib/jenkins/plugins/
18
-    url: https://updates.jenkins-ci.org/latest/{{ item }}.hpi
17
+    dest: "{{ jenkins_config_home }}/plugins/"
18
+    url: "https://updates.jenkins-ci.org/download/plugins/{{ item.name }}/{{ item.version | default('latest') }}/{{ item.name }}.hpi"
19 19
   with_items:
20
-    - "{{ jenkins_plugins_list }}"
20
+    - "{{ jenkins_plugins_manager }}"
21 21
   notify:
22 22
     - Restart jenkins

Loading…
Cancel
Save