Commit 16159119 authored by Oyvind.Gjesdal's avatar Oyvind.Gjesdal
Browse files

add home dir to tomcat user for cron jobs, change default from centos to...

add home dir to tomcat user for cron jobs, change default from centos to rocky, add python2 dependencies https://git.app.uib.no/clarino/ansible-clarino/-/issues/17
parent e33bf2b0
......@@ -20,7 +20,7 @@
file:
state: "directory"
path: "{{ item }}"
owner: "{{ clarin_user | default ('centos') }}"
owner: "{{ clarin_user | default ('rocky') }}"
loop:
- "{{ clarin_home }}"
- "{{ build_dir }}"
......@@ -42,6 +42,7 @@
path: "/var/www/html"
state: "directory"
owner: "{{ clarin_user | default ('centos') }}"
recurse: yes
become: true
- name: "clone aai repo"
......@@ -53,11 +54,24 @@
become: true
become_user: "{{ clarin_user }}"
- name: "create symbolic link from python2 to python (python scripts in makefile uses python)"
- name: "create a home dir for tomcat user, to install python packages locally"
file:
src: "/usr/bin/python2"
dest: "/usr/bin/python"
state: "link"
path: "/home/tomcat"
owner: "tomcat"
state: "directory"
become: true
- name: "use alternatives for configuring default python"
alternatives:
name: "python"
path: "/usr/bin/python2"
become: true
- name: "install python2 packages used for dspace healthcheck"
pip:
name: ["lxml", "python-dateutil", "python-magic"]
executable: "/bin/pip2"
extra_args: "--user"
become: true
- name: "template config to server"
......
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