Commit e77437ba authored by julian.gethmann's avatar julian.gethmann

Add MAD-8 role

* Install MAD-8 from repo and fix issue with madpath and madbin-path
parent 0ae11957
...@@ -22,6 +22,10 @@ las117.las.kit.edu ...@@ -22,6 +22,10 @@ las117.las.kit.edu
las126.las.kit.edu las126.las.kit.edu
las-gethmann.las.kit.edu las-gethmann.las.kit.edu
[mad8]
las113.las.kit.edu
las-gethmann.las.kit.edu
[lab] [lab]
las93.las.kit.edu las93.las.kit.edu
......
- hosts: mad8
roles:
- mad8
---
- name: install MAD-8
dnf:
name: "{{ item }}"
state: installed
become: yes
with_items:
- "MAD-8"
when: (ansible_distribution == "Fedora" or ansible_distribution == "CentOS")
- name: Work around for dict issue 1/2
lineinfile:
line: 'set madpath="/usr/share"'
regexp: 'set madpath=".*"'
dest: /usr/bin/mad
backup: yes
become: yes
- name: Work around for dict issue 2/2
lineinfile:
line: 'set madbin="/usr/bin"'
regexp: 'set madbin=".*"'
dest: /usr/bin/mad
backup: yes
become: yes
---
- include: yumrepos.yml
- include: mad8.yml
---
- 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")
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment