Merge branch 'feature/start-systemd-user-session' of https://github.com/elvetemedve/spark into elvetemedve-feature/start-systemd-user-session

This commit is contained in:
Pig Monkey 2018-03-26 11:27:57 -07:00
commit a3ec20ccec
3 changed files with 33 additions and 0 deletions

20
.editorconfig Normal file
View file

@ -0,0 +1,20 @@
# EditorConfig is awesome: http://EditorConfig.org
# top-most EditorConfig file
root = true
# Unix-style newlines with a newline ending every file
[*]
end_of_line = lf
insert_final_newline = true
charset = utf-8
# Indentation for all Yaml files
[*.yml]
indent_style = space
indent_size = 2
# Indentation for all Ansible template files
[*.j2]
indent_style = space
indent_size = 4

View file

@ -1,3 +1,5 @@
---
- name: restart paccache
service: name=paccache.timer state=restarted
- name: stop systemd per-user instance
service: name="user@{{ user.uid }}" state=stopped

View file

@ -20,3 +20,14 @@
when: user.log.dir is defined
tags:
- user
- name: Create user socket directory
file: path=/run/user/{{ user.uid }} state=directory owner={{ user.name }} group={{ user.group }} mode=0700
tags:
- user
- name: Start user systemd instance
service: name="user@{{ user.uid }}" state=started
notify: stop systemd per-user instance
tags:
- user