Commit 9425f723 authored by Guillaume Mella's avatar Guillaume Mella
Browse files

add some python stuff + enhance eso_pipeline install

parent 73c82c0f
......@@ -33,12 +33,11 @@
# for this playbook
user_login: ees17
eso_pipelines_install_dir: /school/eso-pipelines
gather_facts: true
tasks:
- name: "Install owncloud from their repo"
block:
- apt_key : url="http://download.opensuse.org/repositories/isv:ownCloud:desktop/Debian_9.0/Release.key"
......@@ -79,8 +78,6 @@
src: /dev/sda3
fstype: ext4
state: mounted
- include_role:
name: PeterMosmans.virtualbox-guest
......@@ -96,11 +93,19 @@
group: sudo
password: $6$DRXV8l4dQ59oXrCN$yodKJoBvN8a4cPwF4kyBTOh92utPlJJzlyUemIsordmMWiPABIVRIgfuiS80ln1yNSC0.0jJrKulacsT01Xsn/
- name: 'Account settings (PATH/bin screensaver)'
- name: 'Account settings (PATH, screensaver)'
blockinfile:
dest: "/home/ees17/.bashrc"
block: |
# jmmc script and other installed launchers
export PATH="$PATH:$HOME/bin"
# gasgano
export PATH="$PATH:$HOME/gasgano/bin"
# esoreflex esorex
export PATH="$PATH:/school/eso-pipelines/install/bin/"
echo "Following commands have been install for the school and can be run in the terminal"
esocmds=$(find /school/eso-pipelines/install/bin/ -name "eso*" | while read line ; do basename $line ; done)
echo " gasgano fv "$esocmds
#
xset -dpms
xset s noblank
......@@ -116,11 +121,28 @@
- {dest: "/etc/lightdm/lightdm.conf",regexp: "#autologin-user=",replace: "autologin-user=ees17",reason: "Auto login"}
- {dest: "/etc/default/keyboard",regexp: 'XKBLAYOUT="us"',replace: 'XKBLAYOUT="fr,us"',reason: "add fr layout in keyboard"}
- name: "Test if ESO pipelines are present"
stat: path="{{ eso_pipelines_install_dir }}/install_esoreflex"
register: eso_file_stat
- name: "Install some ESO pipelines"
include_role:
name: eso-pipelines
vars:
eso_pipelines_install_dir: /school/eso-pipelines
when: not eso_file_stat.stat.exists
block:
- include_role:
name: eso-pipelines
- name: "Change ownership to school user of {{ eso_pipelines_install_dir }} "
file:
recurse: yes
state: directory
path: "{{ eso_pipelines_install_dir }}"
owner: "{{ user_login }}"
- name: "Move gasgano to homedir"
block:
- stat: path="{{ eso_pipelines_install_dir }}/gasgano-2.4.8"
register: from_stat
- stat: path="/home/{{ user_login }}/gasgano"
register: to_stat
- command: mv "{{ from_stat.path }}" "{{ to_stat.path }}"
when: from_stat.stat.exists and not to_stat.stat.exists
- name: "Install system packages required by LITpro"
apt: name={{ item }} state=present
......@@ -133,17 +155,19 @@
name: xml
link: /usr/bin/xml
path: "/usr/bin/xmlstarlet"
- name: "Install required science packages"
apt: name={{ item }} state=present
with_items:
#apt: name={{ item }} state=present install_recommends=true
# increase disk size too much - science-astronomy
# increase disk use too much - science-astronomy
- tk
- ftools-fv
- saods9
# - topcat no packaged
- python-pip
- python-rope
- spyder
# - topcat # no package :(
- file:
path: "/home/{{user_login}}/bin"
......@@ -153,17 +177,16 @@
- name: "Install jmmc script to launch jnlps (sphere-client is also included)"
copy:
src: files/jmmc
mode: o+x
mode: 0755
owner: "{{ user_login }}"
dest: "/home/{{user_login}}/bin/jmmc"
# run in session './bin/jmmc --runall' before 'vagrant package'
# TODO run in session './bin/jmmc --runall' before 'vagrant package'
- name: "Install LITpro local service"
synchronize:
src: files/LITproWrapper/
dest: "/home/{{user_login}}/.LITproWrapper"
# launch LITpro, generate pref file and set useremote service to false+fill local service path
# TODO launch LITpro, generate pref file and set useremote service to false+fill local service path
# - name: "Reboot"
# shell: reboot
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