From 5f3e7918390d89175dbd12a2e702bfbb30d039ec Mon Sep 17 00:00:00 2001 From: Enis Afgan Date: Fri, 16 Sep 2016 13:30:45 -0400 Subject: [PATCH 1/2] Use Paramiko instead of OpenSSH Paramiko does not use pipelining so this way disabling tty task can be done using Ansible. --- jetstreamiuenv/playbook.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/jetstreamiuenv/playbook.yml b/jetstreamiuenv/playbook.yml index 22109b21..3af6ccc5 100644 --- a/jetstreamiuenv/playbook.yml +++ b/jetstreamiuenv/playbook.yml @@ -5,6 +5,7 @@ remote_user: centos become: yes become_method: sudo + connection: paramiko pre_tasks: - name: Locate secret group variable files local_action: From b5accfb0b89d63a2bfeba38f44d96ea57f9c887f Mon Sep 17 00:00:00 2001 From: Enis Afgan Date: Mon, 19 Sep 2016 17:20:03 -0400 Subject: [PATCH 2/2] Disable host key checking for paramiko connections --- ansible.cfg | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ansible.cfg b/ansible.cfg index 4516e209..884f04a4 100644 --- a/ansible.cfg +++ b/ansible.cfg @@ -1,4 +1,5 @@ [defaults] +host_key_checking = False # include roles from galaxyproject/ansible-common-roles roles_path = roles:common_roles @@ -17,3 +18,6 @@ pipelining = True # These are necessary for cloud instances #pipelining = False #ssh_args = -o ControlMaster=auto -o ControlPersist=60s -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no + +[paramiko_connection] +record_host_keys = False