mirror of
https://gitea.com/mcereda/oam.git
synced 2026-02-08 21:34:25 +00:00
Added ansible templating example
This commit is contained in:
@@ -2,6 +2,14 @@
|
||||
- hosts: all
|
||||
tasks:
|
||||
|
||||
- name: >-
|
||||
Get the values of some special variables.
|
||||
See https://docs.ansible.com/ansible/latest/reference_appendices/special_variables.html
|
||||
for the full list.
|
||||
debug:
|
||||
var: "{{ item }}"
|
||||
with_items: ["ansible_local", "playbook_dir", "role_path"]
|
||||
|
||||
- name: >-
|
||||
Remove empty or false values from a list piping it to 'select()'.
|
||||
Returns ["string"] from ["", "string", 0, false].
|
||||
|
||||
Reference in New Issue
Block a user