mirror of
https://github.com/kevingruesser/bootstrap-vz.git
synced 2025-08-22 18:00:35 +00:00
set root password only if set in manifest
This commit is contained in:
parent
a4e8f08260
commit
a2e8d0838e
1 changed files with 2 additions and 1 deletions
|
@ -17,7 +17,8 @@ class SetRootPassword(Task):
|
|||
|
||||
def run(self, info):
|
||||
from common.tools import log_check_call
|
||||
log_check_call(['/usr/sbin/chpasswd'], 'root:'+info.manifest.credentials['root'])
|
||||
if info.manifest.credentials['root']:
|
||||
log_check_call(['/usr/sbin/chpasswd'], 'root:'+info.manifest.credentials['root'])
|
||||
|
||||
class DisableSSHPasswordAuthentication(Task):
|
||||
description = 'Disabling SSH password authentication'
|
||||
|
|
Loading…
Add table
Reference in a new issue