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

clarin_user for ownership

parent a0de56c2
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
file: file:
state: "directory" state: "directory"
path: "{{ item }}" path: "{{ item }}"
owner: "{{ clarino_user | default ('centos') }}" owner: "{{ clarin_user | default ('centos') }}"
loop: loop:
- "{{ clarin_home }}" - "{{ clarin_home }}"
- "{{ build_dir }}" - "{{ build_dir }}"
...@@ -35,13 +35,13 @@ ...@@ -35,13 +35,13 @@
accept_hostkey: "yes" accept_hostkey: "yes"
ssh_opts: "-4" ssh_opts: "-4"
become: true become: true
become_user: "dspace" become_user: "{{ clarin_user }}"
- name: "change ownership for /var/www/html before cloning aai" - name: "change ownership for /var/www/html before cloning aai"
file: file:
path: "/var/www/html" path: "/var/www/html"
state: "directory" state: "directory"
owner: "{{ clarino_user | default ('centos') }}" owner: "{{ clarin_user | default ('centos') }}"
become: true become: true
- name: "clone aai repo" - name: "clone aai repo"
...@@ -51,7 +51,7 @@ ...@@ -51,7 +51,7 @@
version: "master" version: "master"
ssh_opts: "-4" ssh_opts: "-4"
become: true become: true
become_user: "dspace" become_user: "{{ clarin_user }}"
- name: "create symbolic link from python2 to python (python scripts in makefile uses python)" - name: "create symbolic link from python2 to python (python scripts in makefile uses python)"
file: file:
......
...@@ -5,14 +5,6 @@ ...@@ -5,14 +5,6 @@
job: "{{ dspace_mailto }}" job: "{{ dspace_mailto }}"
when: "dspace_mailto is defined" when: "dspace_mailto is defined"
- name: "
cron:
name: "throw an error to test if mailto works"
minute: "45"
hour: "22"
job: "/usr/bin/chronic {{ bin_dir }}/dspace cleanup"
user: "tomcat"
- name: "dspace cleanup cron job" - name: "dspace cleanup cron job"
cron: cron:
name: "delete removed items from assetstore weekly" name: "delete removed items from assetstore weekly"
......
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