Difference between revisions of "Ansible lookup plugins"
Jump to navigation
Jump to search
Line 12: | Line 12: | ||
<nowiki> | <nowiki> | ||
- name: 'you-name' | - name: 'you-name' | ||
− | value: "{{ lookup('env','YOUR_ENV_VARIABLE') | string }}" | + | value: "{{ lookup('env','YOUR_ENV_VARIABLE') | [[string]] }}" |
</nowiki> | </nowiki> | ||
</pre> | </pre> |
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]
- Terraform lookup function
ansible-doc -t lookup -l
- Ansible plugins
- Ansible plugin: env
- Ansible modules
See also[edit]
Advertising: