This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# As of Ansible 2.5.2 reset_connection meta function is broken | |
# (see https://github.com/ansible/ansible/issues/27520) | |
# Below is reimplementation of reset_connect via local ssh command invocation | |
# Requires Ansible 2.5+ (config lookup plugin) and OpenSSH 5.9+ ("-O stop" command) | |
# *Update* | |
# Fixed in v2.5.6 | |
# https://github.com/ansible/ansible/blob/stable-2.5/changelogs/CHANGELOG-v2.5.rst#bugfixes-9 | |
- name: Reset persistent connection to host |