Commit 1ddda313 authored by julian.gethmann's avatar julian.gethmann

Add tango role (as described by AB how-to)

parent 3f2cad54
......@@ -153,6 +153,9 @@ idefix.las.kit.edu
teefax.las.kit.edu
lysander.las.kit.edu
[tango]
gutemine.las.kit.edu
# semi stable
[tgu]
pepe.las.kit.edu
......
---
- name: start maria
service:
name: mariadb
state: started
enabled: true
---
- name: install dependencies
become: yes
dnf:
name: [ "omniORB", "omniORB-devel", "cppzmq-devel", "zlib-devel", "mariadb-devel", "doxygen", "cmake" ]
state: installed
notify:
- start maria
- name: get tango sources
unarchive:
remote_src: yes
src: "https://github.com/tango-controls/TangoSourceDistribution/releases/
download/{{ tango_version }}{{ tango_version_ext }}/tango-{{ tango_version }}{{ tango_version_ext }}.tar.gz"
dest: /tmp/
creates: "/tmp/tango-{{ tango_version }}"
owner: undine
group: users
- name: Add maria-db config
become: yes
become_user: undine
blockinfile:
path: /home/undine/.my.conf
block: |
[client]
user=root
create: yes
group: users
backup: yes
mode: 0700
owner: undine
- name: build dir
file:
path: "/tmp/tango-{{ tango_version }}/build"
state: directory
owner: undine
group: users
- name: fix permissions
file:
path: "/tmp/tango-{{ tango_version }}/configure"
state: file
mode: 0777
- name: configure and build tango (1)
command:
argv:
- "/bin/sh"
- "../configure"
- "--enable-mariadb"
- "--with-mariadb-lib=/usr/lib64"
- "--with-mariadbclient-include=/usr/include/mysql"
- "--enable-dbserver"
- "--enable-dbcreate"
chdir: "/tmp/tango-{{ tango_version }}/build"
creates: "/tmp/tango-{{ tango_version }}/build/Makefile"
register: config_out
# - name: check configuration (2)
- name: build (3)
make:
chdir: "/tmp/tango-{{ tango_version }}/build"
target: all
- name: install (4)
become: yes
make:
chdir: "/tmp/tango-{{ tango_version }}/build"
target: install
tango_version: 9.3.3
tango_version_ext: "-rc1"
---
- hosts: tango
roles:
- tango
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