ansible/lib/ansible
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
..
cli Bump sudo/su deprecation to 2.9 (#44581) 2018-08-23 13:22:54 -05:00
compat Fix the local and ssh plugins for a cornercase retrying a syscall 2018-08-13 07:17:11 -07:00
config gather facts improvements (#44008) 2018-08-23 11:36:06 -04:00
errors
executor Extend module_defaults by adding default groups for cloud modules (#44127) 2018-08-22 21:33:27 -04:00
galaxy Fix invalid Dockerfile created by "galaxy init --type apb" (#42017) 2018-07-17 08:11:42 +05:30
inventory Error on empty group/host name (#42584) 2018-07-12 09:59:00 -04:00
module_utils sns_topic boto3 port (#39292) 2018-08-23 21:04:18 -04:00
modules Add reboot action plugin (#35205) 2018-08-23 18:12:12 -07:00
parsing Raise a nicer error when we cannot execute the editor (#44423) 2018-08-22 10:24:11 -05:00
playbook Bump sudo/su deprecation to 2.9 (#44581) 2018-08-23 13:22:54 -05:00
plugins Add reboot action plugin (#35205) 2018-08-23 18:12:12 -07:00
template Remove bare_deprecated functionality (#44517) 2018-08-23 11:31:16 -05:00
utils oVirt: Add depracation warning to all modules (#44440) 2018-08-23 09:42:05 -04:00
vars Don't use copy.deepcopy in high workload areas, use naive_deepcopy (#44337) 2018-08-20 15:08:29 -05:00
__init__.py
constants.py We can create a frozenset from a tuple 2018-08-13 15:21:44 -07:00
release.py update 2.7 codename 2018-05-31 15:46:07 -07:00