ansible コーディング規約 コーディングスタイル

ansibleのコーディング規約

文字列
[SHOULD] 必要がなければクウォートしないで下さい
https://gist.github.com/kkkw/ea55caf2fdaa38a965d7de6954f1fdda

https://github.com/ansible/ansible-lint/discussions/3937

Note
You should only quote strings when it is absolutely necessary or required by YAML, and then use single quotes.
https://docs.ansible.com/ansible/latest/os_guide/windows_usage.html#yaml-style

block ディレクティブ

Ansible v2.0 からの "block" ディレクティブを使ってみる
https://qiita.com/tksarah/items/5ec07acf9e7ee7814a04