Difference between revisions of "Ansible lookup plugins"

From wikieduonline
Jump to navigation Jump to search
 
(2 intermediate revisions by the same user not shown)
Line 2: Line 2:
 
  [[ansible-doc -t lookup -l]]
 
  [[ansible-doc -t lookup -l]]
 
  [[plugins/lookup/]]  
 
  [[plugins/lookup/]]  
 
+
<pre>
 
<nowiki>
 
<nowiki>
<pre>
 
 
  - name: 'you-name'
 
  - name: 'you-name'
 
   value: "{{ lookup('env','YOUR_ENV_VARIABLE') }}"
 
   value: "{{ lookup('env','YOUR_ENV_VARIABLE') }}"
 +
</nowiki>
 
</pre>
 
</pre>
 +
 +
<pre>
 +
<nowiki>
 +
- name: 'you-name'
 +
  value: "{{ lookup('env','YOUR_ENV_VARIABLE') | [[string]] }}"
 
</nowiki>
 
</nowiki>
 +
</pre>
  
 
== Related ==
 
== Related ==

Latest revision as of 12:40, 12 December 2022

ansible-doc -t lookup -l
plugins/lookup/ 

 - name: 'you-name'
   value: "{{ lookup('env','YOUR_ENV_VARIABLE') }}"


 - name: 'you-name'
   value: "{{ lookup('env','YOUR_ENV_VARIABLE') | [[string]] }}"

Related[edit]

See also[edit]

Advertising: