Skip to content

Commit

Permalink
feat(IPv6): Support IPv6-only Ansible hosts
Browse files Browse the repository at this point in the history
  • Loading branch information
cogk committed Oct 15, 2024
1 parent eb5a537 commit ed11238
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions press/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,8 @@ def __init__(self, server, playbook, user="root", variables=None, port=22):
self.playbook = playbook
self.playbook_path = frappe.get_app_path("press", "playbooks", self.playbook)
self.host = f"{server.ip}:{port}"
if server.ip6:
self.host = f"[{server.ip6}]:{port}"
self.variables = variables or {}

constants.HOST_KEY_CHECKING = False
Expand Down

0 comments on commit ed11238

Please sign in to comment.