Skip to content

Commit c74304a

Browse files
committed
Force ansible to ignore ssh host keys when connecting to the remote machine.
1 parent 491f13f commit c74304a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

elasticluster/providers/ansible_provider.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ def __init__(self, private_key_file, remote_user,
119119
ansible_constants.DEFAULT_PRIVATE_KEY_FILE = self._private_key_file
120120
ansible_constants.DEFAULT_REMOTE_USER = self._remote_user
121121
ansible_constants.DEFAULT_SUDO_USER = self._sudo_user
122+
ansible_constants.HOST_KEY_CHECKING=False
122123

123124
def setup_cluster(self, cluster):
124125
self.inventory_path = self._build_inventory(cluster)

0 commit comments

Comments
 (0)