community.general/lib/ansible/modules
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
..
cloud sns_topic boto3 port (#39292) 2018-08-23 21:04:18 -04:00
clustering Surround top-level function and class definitions with two blank lines. 2018-07-31 12:06:56 -07:00
commands Update shell.py (#44477) 2018-08-23 12:31:55 +10:00
crypto Adding module which allows to complete certificate chains (#44169) 2018-08-23 23:18:36 +02:00
database Update proxysql_query_rules.py (#43877) 2018-08-16 19:52:08 +02:00
files Add new parameters to manage mtime and atime for file module, fixes #30226 (#43230) 2018-08-23 17:20:54 -07:00
identity Surround top-level function and class definitions with two blank lines. 2018-07-31 12:06:56 -07:00
inventory Fix typo in group_by module (#41627) 2018-06-18 15:33:08 +05:30
messaging Surround top-level function and class definitions with two blank lines. 2018-07-31 12:06:56 -07:00
monitoring Change DataDog to Datadog (#34273) 2018-08-23 20:20:29 -04:00
net_tools Have nsupdate add expected quotation to TXT records (#43386) 2018-08-23 02:40:50 -04:00
network ACI: Add specific info about running locally (#43903) 2018-08-24 01:28:39 +02:00
notification Fix mail module for python 3.7.0 (#44550) (#44552) 2018-08-23 16:50:54 +10:00
packaging Fix for "cannot marshal None unless.." (#33660) 2018-08-22 12:25:58 -04:00
remote_management Surround top-level function and class definitions with two blank lines. 2018-07-31 12:06:56 -07:00
source_control doc: fixes the the repetitions (#43937) 2018-08-22 21:53:30 +02:00
storage doc: fixes the the repetitions (#43937) 2018-08-22 21:53:30 +02:00
system Add reboot action plugin (#35205) 2018-08-23 18:12:12 -07:00
utilities meta: sort choices matching to description (#23004) 2018-08-16 14:15:20 -05:00
web_infrastructure Move acme_* modules from web_infrastructure into crypto category (#44279) 2018-08-16 22:21:39 +02:00
windows Fix win_domain_computer (#44054) 2018-08-22 06:46:06 -04:00
__init__.py Re-adding the init py for modules 2016-12-08 11:35:20 -05:00