Skip to content

Commit 309d835

Browse files
mnietojiclaude
andcommitted
Add persistent connection timeout settings to ansible.cfg
Configure global timeouts for Ansible persistent connections to prevent netconf socket failures during long-running operations. This addresses timeout issues where network device connections (netconf) close after the default 30-second timeout, causing "socket path does not exist" errors during switch configuration tasks that include operational pauses. Settings: - connect_timeout: 300 seconds - command_timeout: 300 seconds Co-Authored-By: Claude Sonnet 4.5 <[email protected]>
1 parent 83d2daa commit 309d835

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

ansible.cfg

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,10 @@ inventory = inventory.yml
1919
pipelining = True
2020
any_errors_fatal = True
2121
jinja2_native = True
22+
use_persistent_connections = True
23+
[persistent_connection]
24+
connect_timeout = 300
25+
command_timeout = 300
26+
2227
[ssh_connection]
2328
ssh_args = -o ControlMaster=auto -o ControlPersist=300

0 commit comments

Comments
 (0)