yumrepos.yml 1.56 KB
Newer Older
Julian Gethmann's avatar
Julian Gethmann committed
1
---
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
- name: Add LAS dnf repository
  yum_repository:
    name: lasrepo-nonfree
    description: Laboratory for Applications of Synchrotron radiation (CS)
julian.gethmann's avatar
julian.gethmann committed
16
    baseurl:
julian.gethmann's avatar
julian.gethmann committed
17 18
      - "https://las101.las.kit.edu/lasrepo/${releasever}/${basearch}/"
      - "https://las100.las.kit.edu/lasrepo/${releasever}/${basearch}/"
Julian Gethmann's avatar
Julian Gethmann committed
19 20 21 22
    enabled: yes
    gpgcheck: no
    keepalive: yes
    keepcache: 0
23
    sslcacert: /etc/pki/ca-trust/source/anchors/las101.pem
Julian Gethmann's avatar
Julian Gethmann committed
24
  become: yes
25
  when: (ansible_distribution == "Fedora" or ansible_distribution == "CentOS")
Julian Gethmann's avatar
Julian Gethmann committed
26 27 28 29 30 31 32 33 34 35 36

# 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
37
  when: (ansible_distribution == "Fedora" or ansible_distribution == "CentOS")
Julian Gethmann's avatar
Julian Gethmann committed
38