yumrepos.yml 1.48 KB
Newer Older
julian.gethmann's avatar
julian.gethmann committed
1
---
julian.gethmann's avatar
julian.gethmann committed
2
3
4
5
6
7
8
9
10
11
- 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")

julian.gethmann's avatar
julian.gethmann committed
12
13
14
15
16
17
18
19
20
- name: Add LAS dnf repository
  yum_repository:
    name: lasrepo-nonfree
    description: Laboratory for Applications of Synchrotron radiation (CS)
    baseurl: "https://las101.las.kit.edu/lasrepo/${releasever}/${basearch}/"
    enabled: yes
    gpgcheck: no
    keepalive: yes
    keepcache: 0
julian.gethmann's avatar
julian.gethmann committed
21
    sslcacert: /etc/pki/ca-trust/source/anchors/las101.pem
julian.gethmann's avatar
julian.gethmann committed
22
  become: yes
23
  when: (ansible_distribution == "Fedora" or ansible_distribution == "CentOS")
julian.gethmann's avatar
julian.gethmann committed
24
25
26
27
28
29
30
31
32
33
34

# GPG-Key holen TODO
- name: Add Adobe Reader
  yum_repository:
    name: adobe-linux-i386
    description: Adobe Systems Incorporated
    baseurl: http://linuxdownload.adobe.com/linux/i386/
    enabled: yes
    gpgcheck: yes
    gpgkey: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-adobe-linux
  become: yes
35
  when: (ansible_distribution == "Fedora" or ansible_distribution == "CentOS")
julian.gethmann's avatar
julian.gethmann committed
36