yumrepos.yml 843 Bytes
Newer Older
julian.gethmann's avatar
julian.gethmann committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
---
- name: download SSL-Cert
  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 i386 dnf repository
  yum_repository:
    name: lasrepo-nonfree-i386
    description: Laboratory for Applications of Synchrotron radiation (CS) i386
    baseurl: "https://las101.las.kit.edu/lasrepo/${releasever}/i386/"
    enabled: yes
    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")