Run the java R configure command as root.

This commit is contained in:
Andrea Dell'Amico 2018-10-03 18:46:43 +02:00
parent c702469cfe
commit c79bacd579
2 changed files with 16 additions and 3 deletions

View File

@ -33,9 +33,6 @@
shell: /usr/local/bin/wps-config-fixer
# notify: Restart smartgears
- name: Reconfigure the Java environment for R
shell: R CMD javareconf
- name: Remove the file that lists the installed algorithms, after an upgrade
file: dest={{ smartgears_user_home }}/wps_algorithms_install_log/already_installed_algorithms.txt state=absent
register: reinstall_algorithms
@ -51,3 +48,10 @@
become_user: '{{ smartgears_user }}'
tags: [ 'tomcat', 'dataminer', 'wps' ]
- block:
- name: Reconfigure the Java environment for R
shell: R CMD javareconf
become: True
become_user: root
tags: [ 'tomcat', 'dataminer', 'wps' ]

View File

@ -80,6 +80,15 @@
when: r_connector_install
tags: [ 'smartgears', 'r_connector', 'tomcat' ]
- block:
- name: Reconfigure the Java environment for R
shell: R CMD javareconf
become: True
become_user: root
when: r_connector_install
tags: [ 'smartgears', 'r_connector', 'tomcat' ]
- block:
- name: Install the packages required to enable the LDAP PAM authentication
apt: pkg={{ item }} state=present update_cache=yes cache_valid_time=1800