Add strict_key_checking flag to ansible command
Change-Id: I39100bfc9415636ce3ee89c1020afbe1f5b89f39
This commit is contained in:
parent
00a9989fe1
commit
79c84568c1
@ -229,6 +229,7 @@ class AnsibleInstaller(PKInstaller):
|
|||||||
self.log_file
|
self.log_file
|
||||||
)
|
)
|
||||||
log_option = "log_path = %s" % ansible_log_path
|
log_option = "log_path = %s" % ansible_log_path
|
||||||
|
host_key_checking = "host_key_checking = False"
|
||||||
ansible_cfg_file = os.path.join(
|
ansible_cfg_file = os.path.join(
|
||||||
ansible_run_destination,
|
ansible_run_destination,
|
||||||
self.ansible_config
|
self.ansible_config
|
||||||
@ -236,6 +237,7 @@ class AnsibleInstaller(PKInstaller):
|
|||||||
with open(ansible_cfg_file, 'w') as cfg:
|
with open(ansible_cfg_file, 'w') as cfg:
|
||||||
cfg.write('[defaults]\n')
|
cfg.write('[defaults]\n')
|
||||||
cfg.write(log_option)
|
cfg.write(log_option)
|
||||||
|
cfg.write(host_key_checking)
|
||||||
|
|
||||||
# copy roles to run env
|
# copy roles to run env
|
||||||
dirs = self.runner_dirs
|
dirs = self.runner_dirs
|
||||||
|
Loading…
x
Reference in New Issue
Block a user