Browse Source

vdesk config

systemd-xsession
parent
commit
a006b892ec
4 changed files with 26 additions and 13 deletions
  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 View File

@@ -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 View File

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


- import_tasks: vdesk.yaml - import_tasks: vdesk.yaml
when: home_desktop 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 View File

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


- name: vdesk user service - name: vdesk user service
template: 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 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 View File