Class: Ansible::Ruby::Modules::Set_fact
- Inherits:
-
Base
- Object
- Ansible::Ruby::Models::Base
- Base
- Ansible::Ruby::Modules::Set_fact
- Includes:
- FreeForm
- Defined in:
- lib/ansible/ruby/modules/generated/core/utilities/logic/set_fact.rb,
lib/ansible/ruby/modules/custom/utilities/logic/set_fact.rb
Overview
This module allows setting new variables. Variables are set on a host-by-host basis just like facts discovered by the setup module. These variables will survive between plays during an Ansible run, but will not be saved across executions even if you use a fact cache.
Instance Method Summary collapse
-
#key_value ⇒ Object
The C(set_fact) module takes key=value pairs as variables to set in the playbook scope.
Methods included from FreeForm
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
#key_value ⇒ Object
Returns The C(set_fact) module takes key=value pairs as variables to set in the playbook scope. Or alternatively, accepts complex arguments using the C(args:) statement.
12 |
# File 'lib/ansible/ruby/modules/generated/core/utilities/logic/set_fact.rb', line 12 attribute :key_value |