ansible-roles/tomcat-instance/tasks/systemd.yml

15 lines
423 B
YAML
Raw Normal View History

2017-01-03 12:41:19 +01:00
---
- name: Enable systemd user mode
command: "loginctl enable-linger {{ tomcat_instance_name }}"
changed_when: false
- name: Set systemd conf var
lineinfile:
dest: "{{ tomcat_instance_root }}/{{ tomcat_instance_name }}/.profile"
state: present
owner: "{{ tomcat_instance_name }}"
group: "{{ tomcat_instance_name }}"
mode: "0640"
2017-01-03 12:41:19 +01:00
create: yes
line: 'export XDG_RUNTIME_DIR=/run/user/$UID'