Skip to content

Commit

Permalink
enabling SSH host-key-checking by default (#60)
Browse files Browse the repository at this point in the history
  • Loading branch information
ansibleguy committed Sep 13, 2024
1 parent 354bc10 commit 80a7b78
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/ansibleguy-webui/aw/execute/play_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,10 @@ def _environmental_variables(job: Job, execution: JobExecution) -> dict:
**decode_job_env_vars(env_vars_csv=execution.environment_vars, src='Execution')
}

# ansible-runner will default to 'False' if it's not set :(
if 'ANSIBLE_HOST_KEY_CHECKING' not in env_vars:
env_vars['ANSIBLE_HOST_KEY_CHECKING'] = True

return env_vars


Expand Down

0 comments on commit 80a7b78

Please sign in to comment.