Skip to content

Commit

Permalink
Merge pull request #157 from dirgim/reset-git-sslverify
Browse files Browse the repository at this point in the history
Reset git http.sslverify setting after setup is done
  • Loading branch information
dirgim authored May 10, 2019
2 parents da3ae3a + f60f7e2 commit 064aa34
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions playbooks/setup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@
gather_facts: '{{ gather_facts | default("yes") }}'
pre_tasks:
- import_tasks: 'roles/prereqs/tasks/check_os.yml'
- name: "Register current git http.sslVerify value if exists"
shell: "git config --list --global | grep http.sslverify | cut -d'=' -f2"
register: git_ssl_verify
ignore_errors: yes
roles:
- { role: cleanup, when: run_cleanup|bool == true }
- role: create
Expand All @@ -14,3 +18,9 @@
- { role: os_temps, when: setup_containers|bool == true }
- { role: pipeline, when: setup_pipelines|bool == true }
- { role: playbook_hooks, when: setup_playbook_hooks|bool == true }
post_tasks:
- name: "Set git http.sslVerify back to {{ git_ssl_verify.stdout }}"
shell: "git config --global http.sslVerify {{ git_ssl_verify.stdout }}"
when:
- git_ssl_verify.stdout is defined
- git_ssl_verify.stdout != ""

0 comments on commit 064aa34

Please sign in to comment.