Difference between revisions of "Ansible.builtin.set fact:"

From wikieduonline
Jump to navigation Jump to search
 
(8 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
{{lowercase}}
 
{{lowercase}}
* https://docs.ansible.com/ansible/latest/collections/ansible/builtin/set_fact_module.html
+
[[ansible.builtin]].set_fact, https://docs.ansible.com/ansible/latest/collections/ansible/builtin/set_fact_module.html
 
 
 
 
[[ansible.builtin]].set_fact
 
  
 +
<pre>
 +
<nowiki>
 +
- name: set your var
 +
  set_fact:
 +
    you_var_name: "{{ your_var }}"
 +
  when: YOUR_ENV == "yourValue"
 +
</nowiki>
 +
</pre>
  
 +
Parameters:
 +
* [[platform]]
  
 
== Related terms ==
 
== Related terms ==
 
* <code>[[gather_facts:]]</code>
 
* <code>[[gather_facts:]]</code>
 
* <code>set_fact:</code>
 
* <code>set_fact:</code>
 +
* <code>[[with_items:]]</code>
  
 
== See also ==
 
== See also ==
 +
* {{set_fact}}
 
* {{Ansible modules}}
 
* {{Ansible modules}}
  
 
[[Category:Ansible]]
 
[[Category:Ansible]]

Latest revision as of 11:15, 18 October 2023

Advertising: