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:
parent
69cf335a87
commit
1d67e721d0
|
@ -34,7 +34,7 @@
|
||||||
when: ( quickrank_src | changed )
|
when: ( quickrank_src | changed )
|
||||||
|
|
||||||
- name: Install the quickrank binaries
|
- 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
|
shell: cd /home/{{ d4science_user }}/quickrank/bin ; install -m 755 quicklearn /usr/local/bin
|
||||||
when: ( quickrank_src | changed )
|
when: ( quickrank_src | changed )
|
||||||
|
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
notify: Restart smartgears
|
notify: Restart smartgears
|
||||||
|
|
||||||
- name: Install the script that fixes the WPS configuration
|
- 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
|
template: src=wps-config-fixer.j2 dest=/usr/local/bin/wps-config-fixer owner=root group=root mode=0555
|
||||||
with_items: '{{ tomcat_m_instances }}'
|
with_items: '{{ tomcat_m_instances }}'
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue