Commit 3e6143cc authored by Guillaume Mella's avatar Guillaume Mella
Browse files

set a common task to synchronize homedir content

parent dbe88a95
......@@ -78,13 +78,22 @@
src: /dev/sda3
fstype: ext4
state: mounted
- find:
paths: "/opt"
patterns: "*VBoxGuest*"
recurse: yes
file_type: directory
register: vboxguest_paths
- debug: var=vboxguest_paths
- include_role:
name: PeterMosmans.virtualbox-guest
when: vboxguest_paths.files|length == 0
- include_role:
name: williamyeh.oracle-java
- user:
name: "{{ user_login}}"
comment: "{{ user_login | upper}} roscoff tutorial user"
......@@ -93,6 +102,12 @@
group: sudo
password: $6$DRXV8l4dQ59oXrCN$yodKJoBvN8a4cPwF4kyBTOh92utPlJJzlyUemIsordmMWiPABIVRIgfuiS80ln1yNSC0.0jJrKulacsT01Xsn/
- lineinfile:
path: /etc/sudoers
state: present
regexp: '^{{user_login}}\s'
line: '{{ user_login }} ALL=(ALL) NOPASSWD:ALL'
- name: 'Account settings (PATH, screensaver)'
blockinfile:
dest: "/home/ees17/.bashrc"
......@@ -105,12 +120,7 @@
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
xset s off
# TODO : fix it, it does not work !!!
echo " yorick gasgano fv "$esocmds
- name: 'Perform custom replacements'
replace:
......@@ -167,13 +177,9 @@
- python-pip
- python-rope
- spyder
- yorick-mira
# - topcat # no package :(
- file:
path: "/home/{{user_login}}/bin"
owner: "{{ user_login }}"
state: 'directory'
- name: "Install jmmc script to launch jnlps (sphere-client is also included)"
copy:
src: files/jmmc
......@@ -182,10 +188,18 @@
dest: "/home/{{user_login}}/bin/jmmc"
# TODO run in session './bin/jmmc --runall' before 'vagrant package'
- name: "Install LITpro local service"
- name: "Synchronize some files onto user homedir (LITpro local service, screensaver config...)"
synchronize:
src: files/LITproWrapper/
dest: "/home/{{user_login}}/.LITproWrapper"
src: "files/homedir/"
dest: "/home/{{user_login}}/"
- file:
path: "/home/{{user_login}}"
state: 'directory'
owner: "{{ user_login }}"
recurse: yes
# TODO launch LITpro, generate pref file and set useremote service to false+fill local service path
# - name: "Reboot"
......
jdk-*
LITproWrapper
*LITproWrapper
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