Commit 2386b046 by Heechul Kim

diff --git a/porch/api/app/bizlogic.py b/porch/api/app/bizlogic.py

index 1edf286..ff4c2cb 100644
--- a/porch/api/app/bizlogic.py
+++ b/porch/api/app/bizlogic.py
@@ -192,7 +192,8 @@ def play_app(name, data):

     # Let's play.
     s_prikey = PRIKEY_DIR + '/prikey'
-    s_ssh_options = "--ssh-common-args='-o UserKnownHostsFile=/dev/null'"
+    s_ssh_options = "--ssh-common-args='-o UserKnownHostsFile=/dev/null \
+                        -o StrictHostKeyChecking=no'"
     s_cmd= "ansible-playbook {0} -i {1}/hosts --private-key={2} {1}/site.yml"\
             .format(s_ssh_options, s_play_dir, s_prikey)
     log.debug(s_cmd)
parent 6c4a2ba8
Showing with 2 additions and 1 deletions
...@@ -192,7 +192,8 @@ def play_app(name, data): ...@@ -192,7 +192,8 @@ def play_app(name, data):
# Let's play. # Let's play.
s_prikey = PRIKEY_DIR + '/prikey' s_prikey = PRIKEY_DIR + '/prikey'
s_ssh_options = "--ssh-common-args='-o UserKnownHostsFile=/dev/null'" s_ssh_options = "--ssh-common-args='-o UserKnownHostsFile=/dev/null \
-o StrictHostKeyChecking=no'"
s_cmd= "ansible-playbook {0} -i {1}/hosts --private-key={2} {1}/site.yml"\ s_cmd= "ansible-playbook {0} -i {1}/hosts --private-key={2} {1}/site.yml"\
.format(s_ssh_options, s_play_dir, s_prikey) .format(s_ssh_options, s_play_dir, s_prikey)
log.debug(s_cmd) log.debug(s_cmd)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment