2019-06-21 20:53:30 +00:00
|
|
|
infrastructure ansible style guide
|
|
|
|
==================================
|
|
|
|
|
2023-11-22 12:23:48 +01:00
|
|
|
* Use 'yml' instead of 'yaml'
|
2019-06-21 20:53:30 +00:00
|
|
|
|
|
|
|
* do add '.j2' to the end of templates
|
|
|
|
|
2023-11-22 12:23:48 +01:00
|
|
|
* in general let readablity trump grepability, i.e.:
|
2019-06-21 20:53:30 +00:00
|
|
|
|
|
|
|
DONT:
|
|
|
|
- name: This is some play
|
|
|
|
module: name=thing arg=thing2 anotherlongerarg=thing arg4=anodheranth
|
2023-11-22 12:23:48 +01:00
|
|
|
|
2019-06-21 20:53:30 +00:00
|
|
|
DO:
|
|
|
|
- name: This is some play
|
|
|
|
module:
|
|
|
|
- name: thing
|
|
|
|
- arg: thing2
|
|
|
|
..etc
|
|
|
|
|