fix: выход если ошибка в Ansible
This commit is contained in:
@@ -44,7 +44,10 @@ func (app *SpaceWorker) Backup(generateOnly bool, targetHost string, roles ...st
|
||||
}
|
||||
|
||||
app.log.Debug(fmt.Sprintf("ansible command line: %s", command.Args))
|
||||
_ = command.Run()
|
||||
err = command.Run()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
app.log.Info("Download Files")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user