mirror of
https://github.com/kevingruesser/bootstrap-vz.git
synced 2025-08-24 07:26:29 +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):
|
def run(self, info):
|
||||||
from common.tools import log_check_call
|
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):
|
class DisableSSHPasswordAuthentication(Task):
|
||||||
description = 'Disabling SSH password authentication'
|
description = 'Disabling SSH password authentication'
|
||||||
|
|
Loading…
Add table
Reference in a new issue