community.general/lib/ansible/executor
Ricardo Carrillo Cruz a56de25df5
Fix persistent command timeout handling (#34791)
* Fix persistent command timeout handling

We were using play context timeout on ansible-connect to set
the persistent command timeout handler. Thus, we were ignoring
the persistent_command_timeout setting.
Moreover, even by changing that on ansible-connection, were again
overriding it on cliconf send_command, since in a same process we can
just set a single alarm and cliconf send_command alarm setup is executed
after ansible-connection alarm setup.

* Remove alarm setting on cliconf send_command

The alarm is set regardless before it is executed by ansible-connection.
Setting an alarm again, overrides/disables the previous ones as a single
process can just have a single alarm set.

* Move the setting of persistent command timeout to network_cli

We do also use ansible-connection for connection local, so if a
user provides a timeout via provider that would be ignored if we
set the value on ansible-connection.
Moving that logic to network_cli plugin constructor makes both
connections to work.

* Remove debug statements

* Set the persistent command timeout on task_executor

We can't set the timeout on ansible-connection nor network_cli,
otherwise tasks using provider timeout won't work.
2018-01-13 15:54:44 +01:00
..
process include_role handlers bug fix (#26335) 2017-07-19 15:02:32 -05:00
__init__.py ansible/executor: PEP8 compliancy (#24695) 2017-05-30 18:13:53 +01:00
action_write_locks.py Facts Refresh (2.4 roadmap) (#23012) 2017-06-01 11:17:49 -04:00
module_common.py Fix shebang. shebang and interpreter path weren't being templated (#33698) 2017-12-08 06:59:24 -08:00
play_iterator.py Fix include in loop when stategy=free (#33094) 2017-11-27 11:02:47 -05:00
playbook_executor.py Allow variables to be used in vars_prompt (#32802) 2018-01-05 13:24:20 -06:00
stats.py Provide a way to explicitly invoke the debugger (#34006) 2018-01-09 13:50:07 -06:00
task_executor.py Fix persistent command timeout handling (#34791) 2018-01-13 15:54:44 +01:00
task_queue_manager.py Config continued (#31024) 2017-11-16 13:49:57 -05:00
task_result.py Provide a way to explicitly invoke the debugger (#34006) 2018-01-09 13:50:07 -06:00