ansible/lib/ansible/plugins
Ganesh Nalawade 97d4e53131
Support setting persistent command timeout per task basis (#42847)
* Support setting persistent command timeout per task basis

Fixes #42200

*  Add variable `ansible_command_timeout` to `persistent_command_timeout`
   option for `network_cli` and `netconf` connection plugin so that the
   command_timeout can be set per task basis while using `connection=network_cli`
   or `connection=netconf`
   eg:
   ```
   - name: run copy command
     ios_command:
       commands:
       - show version
     vars:
      ansible_command_timeout: 40
   ```

* Modify `ansible-connection` to read command_timeout value from
  connection plugin options.

* Add `ansible_command_timeout` to `persistent_command_timeout`
  option in `persistent` to support `connection=local` so that
  it is backward compatibilty

* To support `connection=local` pass the timeout value as variables
  from persistent connection to `ansible-connection` instead of sending
  it in playcontext

* Fix CI failure

* Fix review comment
2018-07-20 10:04:53 +05:30
..
action Support setting persistent command timeout per task basis (#42847) 2018-07-20 10:04:53 +05:30
cache Do not try to import simplejson in jsonfile.py (#40983) 2018-06-01 11:24:57 -07:00
callback use get_option instead of directly internal dict (#42199) 2018-07-13 15:54:52 -04:00
cliconf Missing close " (#42985) 2018-07-19 09:24:52 +05:30
connection Support setting persistent command timeout per task basis (#42847) 2018-07-20 10:04:53 +05:30
filter Adds an ipmath filter (#41985) 2018-07-11 10:52:31 -07:00
httpapi New base class for HttpApi plugins (#41915) 2018-06-25 15:48:12 -04:00
inventory Fix archived machine bu (#43017) 2018-07-19 14:03:34 -04:00
lookup infoblox list requirements as infoblox_client and should be infoblox-client (#42993) 2018-07-19 12:19:46 -04:00
netconf Fix junos_config confirm commit issue (#41527) 2018-06-29 15:09:55 +05:30
shell runas + async - get working on older hosts (#41772) 2018-06-26 14:40:49 +10:00
strategy Use inventory.get_host instead of direct access to inventory.hosts (#41860) 2018-06-25 15:06:32 -05:00
terminal fix handling of ># ending prompts for sros (#41382) 2018-06-12 11:37:08 -04:00
test Deprecate tests used as filters (#32361) 2017-11-27 17:58:08 -05:00
vars Allow loading dirs from role defaults/vars (#36357) 2018-04-10 17:14:38 -04:00
__init__.py inventory plugins: add test about config API usage (#41888) 2018-07-19 10:45:45 -07:00
loader.py HTTP(S) API connection plugin (#39224) 2018-05-17 18:47:15 -04:00