Class: Ansible::Ruby::Modules::Set_fact

Inherits:
Base show all
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

Methods included from FreeForm

included, #to_h

Methods inherited from Base

#ansible_name, #to_h

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_valueObject

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.

Returns:

  • (Object)

    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