Class: Ansible::Ruby::Modules::Os_server_action
- Inherits:
-
Base
- Object
- Ansible::Ruby::Models::Base
- Base
- Ansible::Ruby::Modules::Os_server_action
- Defined in:
- lib/ansible/ruby/modules/generated/cloud/openstack/os_server_action.rb,
lib/ansible/ruby/modules/generated/cloud/openstack/os_server_actions.rb
Overview
Perform server actions on an existing compute instance from OpenStack. This module does not return any data other than changed true/false. When I(action) is ‘rebuild’, then I(image) parameter is required.
Instance Method Summary collapse
-
#action ⇒ :stop, ...
Perform the given action.
-
#availability_zone ⇒ Object?
Ignored.
-
#image ⇒ Object?
Image the server should be rebuilt with.
-
#server ⇒ String
Name or ID of the instance.
-
#timeout ⇒ Integer?
The amount of time the module should wait for the instance to perform the requested action.
-
#wait ⇒ :yes, ...
If the module should wait for the instance action to be performed.
Methods inherited from Base
Methods inherited from Ansible::Ruby::Models::Base
attr_option, attr_options, attribute, #initialize, remove_existing_validations, #to_h, validates
Constructor Details
This class inherits a constructor from Ansible::Ruby::Models::Base
Instance Method Details
#action ⇒ :stop, ...
Returns Perform the given action. The lock and unlock actions always return changed as the servers API does not provide lock status.
24 |
# File 'lib/ansible/ruby/modules/generated/cloud/openstack/os_server_action.rb', line 24 attribute :action |
#availability_zone ⇒ Object?
Returns Ignored. Present for backwards compatibility.
31 |
# File 'lib/ansible/ruby/modules/generated/cloud/openstack/os_server_action.rb', line 31 attribute :availability_zone |
#image ⇒ Object?
Returns Image the server should be rebuilt with.
28 |
# File 'lib/ansible/ruby/modules/generated/cloud/openstack/os_server_action.rb', line 28 attribute :image |
#server ⇒ String
Returns Name or ID of the instance.
12 |
# File 'lib/ansible/ruby/modules/generated/cloud/openstack/os_server_action.rb', line 12 attribute :server |
#timeout ⇒ Integer?
Returns The amount of time the module should wait for the instance to perform the requested action.
20 |
# File 'lib/ansible/ruby/modules/generated/cloud/openstack/os_server_action.rb', line 20 attribute :timeout |
#wait ⇒ :yes, ...
Returns If the module should wait for the instance action to be performed.
16 |
# File 'lib/ansible/ruby/modules/generated/cloud/openstack/os_server_action.rb', line 16 attribute :wait |