feat(assets): 推送系统用户增加comment

pull/4928/head
ibuler 2020-11-03 13:31:07 +08:00 committed by Jiangjie.Bai
parent 9d9177ed05
commit 0c1f717fb2
1 changed files with 3 additions and 1 deletions

View File

@ -36,6 +36,7 @@ def get_push_unixlike_system_user_tasks(system_user, username=None):
username = system_user.username
password = system_user.password
public_key = system_user.public_key
comment = system_user.name
groups = _split_by_comma(system_user.system_groups)
@ -47,7 +48,8 @@ def get_push_unixlike_system_user_tasks(system_user, username=None):
'shell': system_user.shell or Empty,
'state': 'present',
'home': system_user.home or Empty,
'groups': groups or Empty
'groups': groups or Empty,
'comment': comment
}
tasks = [