library/roles/quickrank: Fix the 'become' behaviour so that it works when remote_user is not root.

library/roles/smartgears/dataminer_app/tasks/dataminer-app.yml: Fix the 'become' behaviour so that it works when remote_user is not root.
This commit is contained in:
Andrea Dell'Amico 2017-02-09 12:03:52 +01:00
parent 69cf335a87
commit 1d67e721d0
2 changed files with 2 additions and 2 deletions

View File

@ -34,7 +34,7 @@
when: ( quickrank_src | changed )
- name: Install the quickrank binaries
become: False
become_user: "{{ d4science_ansible_become_user | default('root') }}"
shell: cd /home/{{ d4science_user }}/quickrank/bin ; install -m 755 quicklearn /usr/local/bin
when: ( quickrank_src | changed )

View File

@ -15,7 +15,7 @@
notify: Restart smartgears
- name: Install the script that fixes the WPS configuration
become: False
become_user: "{{ d4science_ansible_become_user | default('root') }}"
template: src=wps-config-fixer.j2 dest=/usr/local/bin/wps-config-fixer owner=root group=root mode=0555
with_items: '{{ tomcat_m_instances }}'