Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
ansible
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
36
Issues
36
List
Boards
Labels
Service Desk
Milestones
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
las-it-organisation
32-0-IT instructions and rules
ansible
Commits
8170880c
Commit
8170880c
authored
Mar 12, 2017
by
julian.gethmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix lasrepo SSL-Cert issue
parent
5a42a396
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
5 deletions
+16
-5
group_vars/all
group_vars/all
+0
-5
roles/common/handlers/main.yml
roles/common/handlers/main.yml
+4
-0
roles/common/tasks/main.yml
roles/common/tasks/main.yml
+1
-0
roles/common/tasks/yumrepos.yml
roles/common/tasks/yumrepos.yml
+11
-0
No files found.
group_vars/all
View file @
8170880c
...
...
@@ -29,11 +29,6 @@ admin_software:
- ansible-lint
- ansible-inventory-grapher
python_software:
- python3-scipy
- python3-matplotlib
# - anaconda3
desktop_software:
- thunderbird
- firefox
...
...
roles/common/handlers/main.yml
View file @
8170880c
...
...
@@ -26,3 +26,7 @@
-
name
:
lock root user
become
:
yes
shell
:
passwd -l root
-
name
:
update-ca-trust
become
:
yes
command
:
update-ca-trust extract
roles/common/tasks/main.yml
View file @
8170880c
...
...
@@ -7,4 +7,5 @@
-
include
:
sysupdate.yml
-
include
:
ntp.yml
-
include
:
yumrepos.yml
tags
:
lasrepo
-
include
:
software.yml
roles/common/tasks/yumrepos.yml
View file @
8170880c
---
-
name
:
download SSL-Cert
#shell: openssl s_client -connect las101.las.kit.edu:443 <<<'' | openssl x509 -out /etc/pki/ca-trust/source/anchors/las101.crt
# shell: echo -n |openssl s_client -connect las101.las.kit.edu:443 | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' > /etc/pki/ca-trust/source/anchors/las101.pem
shell
:
echo -n |openssl s_client -connect las101.las.kit.edu:443 -showcerts |sed -n '/^-----BEGIN CERT/,/^-----END CERT/p' > /etc/pki/ca-trust/source/anchors/las101.pem
args
:
creates
:
/etc/pki/ca-trust/source/anchors/las101.pem
become
:
yes
notify
:
update-ca-trust
when
:
(ansible_distribution == "Fedora" or ansible_distribution == "CentOS")
-
name
:
Add LAS dnf repository
yum_repository
:
name
:
lasrepo-nonfree
...
...
@@ -8,6 +18,7 @@
gpgcheck
:
no
keepalive
:
yes
keepcache
:
0
sslcacert
:
/etc/pki/ca-trust/source/anchors/las101.pem
become
:
yes
when
:
(ansible_distribution == "Fedora" or ansible_distribution == "CentOS")
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment