Ansible
- name: # Touch files with an optional mode
ansible.builtin.file:
dest: "{{ item.path }}"
state: touch
mode: "{{ item.mode | default(omit) }}"
loop:
- path: /tmp/foo
- path: /tmp/bar
- path: /tmp/baz
mode: "0444"
- It also uses Jinja templates
- They are processed after loading the YAML
- Many people think {{ ... }} is a part of YAML
- Intro on their
website:
"This page provides a basic overview of correct YAML syntax, which is how
Ansible playbooks (our configuration management language) are expressed."