Skip to content

Commit d1db94c

Browse files
Merge pull request #7 from wcm-io-devops/feature/use-crumb-and-cookie
Use jenkins_facts_cookie for auth
2 parents 3dadd8f + fd1f266 commit d1db94c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tasks/main.yml

+2
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@
5555
method: "POST"
5656
headers:
5757
Jenkins-Crumb: '{{ jenkins_facts_csrf_crumb }}'
58+
Cookie: '{{ jenkins_facts_cookie }}'
5859
force_basic_auth: true
5960
status_code: 302
6061
tags:
@@ -107,6 +108,7 @@
107108
url_password: "{{ jenkins_plugins_admin_password }}"
108109
headers:
109110
Jenkins-Crumb: '{{ jenkins_facts_csrf_crumb }}'
111+
Cookie: '{{ jenkins_facts_cookie }}'
110112
with_dict: "{{ jenkins_plugins_uninstall_plugins | default({}) }}"
111113
changed_when: _jenkins_plugins_uninstall_result.status == 302
112114
notify:

0 commit comments

Comments
 (0)