@@ -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 |
@@ -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,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 |