mirror of
https://github.com/pigmonkey/spark.git
synced 2026-08-01 20:12:29 +00:00
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:
commit
a3ec20ccec
3 changed files with 33 additions and 0 deletions
20
.editorconfig
Normal file
20
.editorconfig
Normal 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
|
||||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue