mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Add AIX support to reboot module (#50353)
* Add ability for reboot module to work for AIX * changelog for AIX reboot support
This commit is contained in:
parent
3ec469f904
commit
1dac10e5c3
2 changed files with 4 additions and 0 deletions
2
changelogs/fragments/reboot-add-aix-support.yml
Normal file
2
changelogs/fragments/reboot-add-aix-support.yml
Normal file
|
@ -0,0 +1,2 @@
|
|||
bugfixes:
|
||||
- reboot - add support for rebooting AIX (https://github.com/ansible/ansible/issues/49712)
|
|
@ -46,6 +46,7 @@ class ActionModule(ActionBase):
|
|||
'solaris': 'who -b',
|
||||
'sunos': 'who -b',
|
||||
'vmkernel': 'grep booted /var/log/vmksummary.log | tail -n 1',
|
||||
'aix': 'who -b',
|
||||
}
|
||||
|
||||
SHUTDOWN_COMMANDS = {
|
||||
|
@ -62,6 +63,7 @@ class ActionModule(ActionBase):
|
|||
'solaris': '-y -g {delay_sec} -i 6 "{message}"',
|
||||
'sunos': '-y -g {delay_sec} -i 6 "{message}"',
|
||||
'vmkernel': '-d {delay_sec}',
|
||||
'aix': '-Fr',
|
||||
}
|
||||
|
||||
TEST_COMMANDS = {
|
||||
|
|
Loading…
Reference in a new issue