浏览代码

vdesk config

systemd-xsession
父节点
当前提交
a006b892ec
共有 4 个文件被更改,包括 26 次插入13 次删除
  1. +13
    -0
      tasks/clean.yaml
  2. +11
    -0
      tasks/main.yaml
  3. +2
    -13
      tasks/vdesk.yaml
  4. +0
    -0
      templates/vdesk.service.j2

+ 13
- 0
tasks/clean.yaml 查看文件

@@ -1 +1,14 @@
---

- name: disable and stop eralitex vdesk user service
systemd:
name: eralitex@:16.service
state: stopped
enabled: false
scope: user
failed_when: false

- name: remove eralitex user service
file:
path: ~/.config/systemd/user/eralitex@.service
state: absent

+ 11
- 0
tasks/main.yaml 查看文件

@@ -20,3 +20,14 @@

- import_tasks: vdesk.yaml
when: home_desktop

- name: flush handlers
meta: flush_handlers

- name: enable and start vdesk user service
systemd:
name: vdesk@:16.service
state: started
enabled: true
scope: user
when: home_vdesk_started_and_enabled

+ 2
- 13
tasks/vdesk.yaml 查看文件

@@ -2,17 +2,6 @@

- name: vdesk user service
template:
src: eralitex-vdesk.service.j2
dest: ~/.config/systemd/user/eralitex@.service
src: vdesk.service.j2
dest: ~/.config/systemd/user/vdesk@.service
notify: systemd daemon-reload

- name: flush handlers
meta: flush_handlers

- name: enable and start eralitex vdesk user service
systemd:
name: eralitex@:16.service
state: started
enabled: true
user: true
when: home_vdesk_started_and_enabled

templates/eralitex-vdesk.service.j2 → templates/vdesk.service.j2 查看文件