Difference between revisions of "Ansible.builtin.set fact:"
Jump to navigation
Jump to search
(4 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{lowercase}} | {{lowercase}} | ||
− | + | [[ansible.builtin]].set_fact, https://docs.ansible.com/ansible/latest/collections/ansible/builtin/set_fact_module.html | |
− | |||
− | |||
− | |||
<pre> | <pre> | ||
Line 13: | Line 10: | ||
</nowiki> | </nowiki> | ||
</pre> | </pre> | ||
+ | |||
+ | Parameters: | ||
+ | * [[platform]] | ||
== Related terms == | == Related terms == | ||
Line 20: | Line 20: | ||
== See also == | == See also == | ||
+ | * {{set_fact}} | ||
* {{Ansible modules}} | * {{Ansible modules}} | ||
[[Category:Ansible]] | [[Category:Ansible]] |
Latest revision as of 11:15, 18 October 2023
ansible.builtin.set_fact, https://docs.ansible.com/ansible/latest/collections/ansible/builtin/set_fact_module.html
- name: set your var set_fact: you_var_name: "{{ your_var }}" when: YOUR_ENV == "yourValue"
Parameters:
Related terms[edit]
gather_facts:
set_fact:
with_items:
See also[edit]
set_fact
- Ansible modules:
gather_facts, set_fact
,ansible.builtin.file
,lineinfile
,stat
,group
,mount
,git:
,package:
,command:
,shell:
,raw:
,template:
,register:
,user:
, Ansible playbooks examples,tasks:
,lineinfile, blockinfile:
,shell:
,command:
,raw:
,ansible.builtin.file, service:, aws.ecs_taskdefinition, aws.asg, docker_container, kubernetes.core.k8s
,community.
,include_tasks
Advertising: