Skip to content

Instantly share code, notes, and snippets.

@sperlic
Created May 26, 2016 12:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sperlic/ede2e0f9177f5f550e20b9154c0c45d3 to your computer and use it in GitHub Desktop.
Save sperlic/ede2e0f9177f5f550e20b9154c0c45d3 to your computer and use it in GitHub Desktop.
Formatiranje
Nemojte koristiti YAML karakter > koji najavljuje prelamenje reda
neispravno_formatiran.yml
- file: >
dest='{{ foo_path }}'
src='foo.txt'
mode=0077
state=present
user='deploy'
group='wheel'
Ili samo jednu liniju
neispravno_formatiran.yml
- file: dest='{{ foo_path }}' src='foo.conf' mode=0077 state=present user='deploy' group='wheel'
Opcije modula razdvojite novim redom a njihove vrednosti dvotačkom
ispravno_formatiran.yml
- file:
dest: '{{ foo_path }}'
src: 'foo.txt'
mode: 0077
state: present
user: 'deploy'
group: 'wheel'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment