Class: Ansible::Ruby::Modules::Debug
- Inherits:
-
Base
- Object
- Ansible::Ruby::Models::Base
- Base
- Ansible::Ruby::Modules::Debug
- Defined in:
- lib/ansible/ruby/modules/generated/core/utilities/logic/debug.rb
Overview
This module prints statements during execution and can be useful for debugging variables or expressions without necessarily halting the playbook. Useful for debugging together with the ‘when:’ directive.
Instance Method Summary collapse
-
#msg ⇒ String?
The customized message that is printed.
-
#var ⇒ String?
A variable name to debug.
-
#verbosity ⇒ Integer?
A number that controls when the debug is run, if you set to 3 it will only run debug when -vvv or above.
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
#msg ⇒ String?
Returns The customized message that is printed. If omitted, prints a generic message.
11 |
# File 'lib/ansible/ruby/modules/generated/core/utilities/logic/debug.rb', line 11 attribute :msg |
#var ⇒ String?
Returns A variable name to debug. Mutually exclusive with the ‘msg’ option.
15 |
# File 'lib/ansible/ruby/modules/generated/core/utilities/logic/debug.rb', line 15 attribute :var |
#verbosity ⇒ Integer?
Returns A number that controls when the debug is run, if you set to 3 it will only run debug when -vvv or above.
19 |
# File 'lib/ansible/ruby/modules/generated/core/utilities/logic/debug.rb', line 19 attribute :verbosity |