Skip to content

Commit

Permalink
Merge pull request #7 from wcm-io-devops/feature/use-crumb-and-cookie
Browse files Browse the repository at this point in the history
Use jenkins_facts_cookie for auth
  • Loading branch information
tobias-richter authored May 26, 2020
2 parents 3dadd8f + fd1f266 commit d1db94c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@
method: "POST"
headers:
Jenkins-Crumb: '{{ jenkins_facts_csrf_crumb }}'
Cookie: '{{ jenkins_facts_cookie }}'
force_basic_auth: true
status_code: 302
tags:
Expand Down Expand Up @@ -107,6 +108,7 @@
url_password: "{{ jenkins_plugins_admin_password }}"
headers:
Jenkins-Crumb: '{{ jenkins_facts_csrf_crumb }}'
Cookie: '{{ jenkins_facts_cookie }}'
with_dict: "{{ jenkins_plugins_uninstall_plugins | default({}) }}"
changed_when: _jenkins_plugins_uninstall_result.status == 302
notify:
Expand Down

0 comments on commit d1db94c

Please sign in to comment.