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
|
name: lmnsynci
|
||||||
comment: lmn sync user
|
comment: lmn sync user
|
||||||
system: true
|
system: true
|
||||||
|
create_home: false
|
||||||
|
shell: /usr/bin/false
|
||||||
|
|
||||||
- name: create vm directory
|
- name: create vm directory
|
||||||
file:
|
file:
|
||||||
|
@ -169,9 +171,11 @@
|
||||||
notify: Run update-desktop-database
|
notify: Run update-desktop-database
|
||||||
|
|
||||||
- name: sync .torrent, .xml and .desktop files and run update-desktop-database
|
- name: sync .torrent, .xml and .desktop files and run update-desktop-database
|
||||||
command: /usr/local/bin/sync-vm.sh -t
|
command: sudo -u lmnsynci /usr/local/bin/sync-vm.sh -t
|
||||||
become: true
|
#become: true
|
||||||
become_user: lmnsynci
|
#become_user: lmnsynci
|
||||||
|
#become_method: su
|
||||||
|
#become_flags: '-s /usr/bin/bash'
|
||||||
register: result
|
register: result
|
||||||
changed_when: result.stdout | length > 0
|
changed_when: result.stdout | length > 0
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue