Cleanup some tasks and manage differences between Kubernetes version and apt package version

This commit is contained in:
Paul-Henri Froidmont 2018-10-01 16:52:40 +02:00
parent 536eed368a
commit ed24aa4f8d
10 changed files with 13 additions and 24 deletions

View file

@ -78,8 +78,8 @@ class SCWInventory(object):
for host, variables in self.response['_meta']['hostvars'].items():
if host != 'proxy1':
variables['ansible_ssh_common_args'] = '-o ProxyCommand="ssh -W %h:%p -q root@' + \
self.response['_meta']['hostvars']['proxy1'][
'public_ip'] + ' -o StrictHostKeyChecking=no"'
self.response['_meta']['hostvars']['proxy1']['public_ip'] \
+ ' -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null"'
def _add_to_response(self, group, hostname):
"""