lmnsynci without homedir

This commit is contained in:
Raphael Dannecker 2023-08-16 12:18:32 +02:00
parent 2fe52816e4
commit 10967afaf7

View file

@ -36,6 +36,8 @@
name: lmnsynci
comment: lmn sync user
system: true
create_home: false
shell: /usr/bin/false
- name: create vm directory
file:
@ -169,9 +171,11 @@
notify: Run update-desktop-database
- name: sync .torrent, .xml and .desktop files and run update-desktop-database
command: /usr/local/bin/sync-vm.sh -t
become: true
become_user: lmnsynci
command: sudo -u lmnsynci /usr/local/bin/sync-vm.sh -t
#become: true
#become_user: lmnsynci
#become_method: su
#become_flags: '-s /usr/bin/bash'
register: result
changed_when: result.stdout | length > 0