A few extra lint rules to keep coding style consistent.
ROBERT1: To keep code consistent and mostly readable.
Correct:
- name: do something
package:
name: "{{ variable | default(omit) }}"
Incorrect: (Spaces after and before both ( and ).
- name: do something
package:
name: "{{ variable | default ( omit ) }}"
ROBERT2: To make sure playbooks are simple to read.
Correct:
- name: do something:
package:
name: "{{ packages }}"
Incorrect:
- name: do something:
package:
name: "{{ packages[ansible_distribution }}"
ROBERT3: Find values with a variable in it somwhere without quotes.
Correct:
- name: do something
package:
name: "/tmp/{{ file }}"
Incorrect:
- name: do something
package:
name: /tmp/{{ file }}
ROBERT4:
Correct:
- name: do something
package:
name: "bla"
Incorrect:
- name: do something
package:
name: bla"