-
Notifications
You must be signed in to change notification settings - Fork 257
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #246 from safespring/master
Update CA-bundle after (optionally) accepting self signed cert from gitlab server
- Loading branch information
Showing
2 changed files
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
- name: install ca package on rhel systems | ||
yum: | ||
name: ca-certificates | ||
state: present | ||
when: ansible_os_family == "RedHat" | ||
|
||
- name: install ca package on debian systems | ||
apt: | ||
name: ca-certificates | ||
state: present | ||
update_cache: yes | ||
when: ansible_os_family == "Debian" | ||
|
||
- name: enable dynamic ca configuration on rhel6 | ||
shell: /bin/update-ca-trust enable | ||
when: ansible_os_family == "RedHat" and ansible_distribution_major_version|int == 6 | ||
|
||
- name: update trusted ca debian | ||
shell: /usr/sbin/update-ca-certificates | ||
when: ansible_os_family == "Debian" | ||
|
||
- name: update trusted ca redhat | ||
shell: /bin/update-ca-trust | ||
when: ansible_os_family == "RedHat" |