lmnsynci without homedir
This commit is contained in:
parent
2fe52816e4
commit
10967afaf7
1 changed files with 7 additions and 3 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue