Skip to content

Commit 6bcf476

Browse files
committed
docs(be): add comment
1 parent a2e34ef commit 6bcf476

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

db_lib/AnsiblePlaybook.go

+4
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ func (p AnsiblePlaybook) makeCmd(command string, args []string, environmentVars
2727
cmd.Env = append(cmd.Env, fmt.Sprintf("PWD=%s", cmd.Dir))
2828
cmd.Env = append(cmd.Env, "PYTHONUNBUFFERED=1")
2929
cmd.Env = append(cmd.Env, "ANSIBLE_FORCE_COLOR=True")
30+
31+
// TODO: Following option doesn't work when password authentication used.
32+
// So, we need to check args for --ask-pass, --ask-become-pass or remove this code completely.
33+
// What reason to use this code: prevent hanging of semaphore when host key confirmation required.
3034
//cmd.Env = append(cmd.Env, "ANSIBLE_SSH_ARGS=\"-o BatchMode=yes\"")
3135

3236
if environmentVars != nil {

0 commit comments

Comments
 (0)