Commit 041bab88 authored by int32bit's avatar int32bit Committed by 老广

Assure group when push system user to asset (#3155)

Some OS like SUSE12SP3 may not create group when create an OS user. In this case, the task "Set home dir permission" will always fail as the group doesn't exist in the system.
parent 996da2d9
......@@ -384,6 +384,15 @@ def get_push_linux_system_user_tasks(system_user):
),
}
},
{
'name': 'Add group {}'.format(system_user.username),
'action': {
'module': 'group',
'args': 'name={} state=present'.format(
system_user.username,
),
}
},
{
'name': 'Check home dir exists',
'action': {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment