Skip to content

Commit 22bc22e

Browse files
authored
Add FAQ entry for 'new control master' SSH errors (#117)
Signed-off-by: Webster Mudge <wmudge@cloudera.com>
1 parent 52cdcc7 commit 22bc22e

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

FAQ.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,3 +114,22 @@ You can [test sample filters](https://play.jmespath.org/?u=45e4d839-15f9-4569-94
114114
}
115115
]
116116
```
117+
118+
## How to I configure SSH to avoid a "Failed to connect to new control master" error?
119+
120+
When running connecting to a host via SSH while running `ansible-navigator`, in particular when you are working with Terraform inventory managed by the `cloud.terraform` inventory plugin, you might encounter the following error:
121+
122+
```
123+
Failed to connect to the host via ssh: Control socket connect(/runner/.ansible/cp/b44b170fff): Connection refused
124+
Failed to connect to new control master
125+
```
126+
127+
To resolve, be sure to add the following variable to your `ansible-navigator.yml` configuration file:
128+
129+
```yaml
130+
ansible-navigator:
131+
execution-environment:
132+
environment-variables:
133+
set:
134+
ANSIBLE_SSH_CONTROL_PATH: "/dev/shm/cp%%h-%%p-%%r"
135+
```

0 commit comments

Comments
 (0)