We don't want Solr to run as root!

This commit is contained in:
Tristan PILAT 2019-07-04 12:26:05 +02:00
parent 57e93eddd4
commit a141847445
1 changed files with 0 additions and 11 deletions

View File

@ -1,12 +1,4 @@
---
- name: "Change default ulimit for container {{ name }}"
blockinfile:
dest: "/var/lib/lxc/{{ name }}/rootfs/root/.bashrc"
marker: "# {mark} set ulimit for Solr"
block: |
ulimit -n 65000
ulimit -u 65000
- name: Install openjdk-8-jre-headless package
command: "lxc-attach -n {{name}} -- apt-get install -y openjdk-8-jre-headless"
@ -34,6 +26,3 @@
changed_when: false
register: service_solr_status
- name: "Start Solr {{ solr_version }}"
command: "lxc-attach -n {{name}} -- /opt/solr-{{ solr_version }}/bin/solr start -p {{ solr_port }} -force"
when: service_solr_status | failed