diff --git a/playbooks/roles/update_ssh_config_vagrant/update_ssh_config/update_ssh_config.py b/playbooks/roles/update_ssh_config_vagrant/update_ssh_config/update_ssh_config.py index feac31d22..731533d3c 100755 --- a/playbooks/roles/update_ssh_config_vagrant/update_ssh_config/update_ssh_config.py +++ b/playbooks/roles/update_ssh_config_vagrant/update_ssh_config/update_ssh_config.py @@ -41,7 +41,7 @@ def remove_hosts(args): if len(kv) > 1: key, value = kv if key.lower() == "host": - if value in hosts: + if value.split(' ')[0] in hosts: rm_this_host = True continue else: