ansible/lib/ansible/plugins
Sam Doran 4d9218cec4 Add reboot action plugin (#35205)
* Update docs

* Add reboot action plugin

Refactor win_reboot so it is subclassed from reboot

* Use new connection methods

* Test fixes

* Use better uptime command for Linux

Use who -b to get the last time the system was booted rather than uptime, which changes every second.

* Use distribution specefic commands and flags

Query the managed node to determien its distribution, then set the appropriate command and flags.

* Tune debug messages a bit

* Update module docs with details about pre_reboot_delay

s docs

* Ensure that post_reboot_delay is a positive number

* Remove the stringification

* Add integration tests

* Make sure aliases are honored

* Handle systems that have an incorrect last boot time

SystemD and fakehw-clock do not properly set the
last boot time and instead always set it to epoch.
Use a different command if that is the case.

* Copyright and encoding fixes

* Minor fixes based on feedback

* Add exponential backoff to sucess check method

* Update integration test

Skip the integration test if it would try to reboot the control node. We need a new mechanism to account for this scenario in ansible-test, so tests must currently be run manually for this plugin.

* Update integration test

Skip the integration test if it would try to reboot the control node. We need a new mechanism to account for this scenario in ansible-test, so tests must currently be run manually for this plugin.

* Fail early with running with local connection

* Update docs based on feedback

* minor refactoring, state mgmt changes
2018-08-23 18:12:12 -07:00
..
action Add reboot action plugin (#35205) 2018-08-23 18:12:12 -07:00
cache Do not try to import simplejson in jsonfile.py (#40983) 2018-06-01 11:24:57 -07:00
callback Bugfixes and integration tests for 'default' callback plugin 2018-08-15 07:56:17 -07:00
cliconf Replace invalid_params with ValueError (#44545) 2018-08-23 15:49:08 +02:00
connection Add support for multiple prompt answers in network_cli (#44492) 2018-08-23 09:46:42 -04:00
filter Fixes #23078 - eliminate trailing whitespace in to_nice_json (#42633) 2018-08-22 14:55:30 -05:00
httpapi Httpapi plugin for Firepower device (#43773) 2018-08-14 14:28:07 +05:30
inventory RDS inventory plugin (#41919) 2018-08-23 19:42:32 -04:00
lookup Added Support for excluding IPs in nios_next_ip and created new pluggin for nios_next_network (#44437) 2018-08-23 03:08:39 +00:00
netconf Update netconf_config module (#44379) 2018-08-21 20:41:18 +05:30
shell psrp: Added new Windows connection plugin (#41729) 2018-08-21 16:43:13 -07:00
strategy Add new host_pinned strategy (#44586) 2018-08-23 20:16:32 -04:00
terminal new module exos_config (#43902) 2018-08-15 14:56:50 -07:00
test Added an async 'started' test (like 'finished') (#43445) 2018-08-24 01:29:34 +02:00
vars
__init__.py inventory plugins: add test about config API usage (#41888) 2018-07-19 10:45:45 -07:00
loader.py Catch exceptions when importing plugins, and display an appropriate warning. Fixes #43237 (#43501) 2018-07-31 16:00:04 -05:00