diff --git a/.ansible-lint b/.ansible-lint new file mode 100644 index 0000000..c6f6ca4 --- /dev/null +++ b/.ansible-lint @@ -0,0 +1,2 @@ +skip_list: + - role-name \ No newline at end of file diff --git a/.yamllint b/.yamllint new file mode 100644 index 0000000..8827676 --- /dev/null +++ b/.yamllint @@ -0,0 +1,33 @@ +--- +# Based on ansible-lint config +extends: default + +rules: + braces: + max-spaces-inside: 1 + level: error + brackets: + max-spaces-inside: 1 + level: error + colons: + max-spaces-after: -1 + level: error + commas: + max-spaces-after: -1 + level: error + comments: disable + comments-indentation: disable + document-start: disable + empty-lines: + max: 3 + level: error + hyphens: + level: error + indentation: disable + key-duplicates: enable + line-length: disable + new-line-at-end-of-file: disable + new-lines: + type: unix + trailing-spaces: disable + truthy: disable diff --git a/tasks/communication.yml b/tasks/communication.yml index 1b58f7c..2c64db7 100644 --- a/tasks/communication.yml +++ b/tasks/communication.yml @@ -20,7 +20,7 @@ } - { dest: /etc/postfix/main.cf, regexp: "^.?relayhost =", - line: "relayhost = {{ relayhost }}" + line: "relayhost = {{ common_postfix_relayhost }}" } - { dest: /etc/postfix/main.cf, @@ -33,11 +33,11 @@ name: postfix state: started enabled: yes - when: postfix_configure + when: common_postfix_configure - name: Ensure root forwarding address is set lineinfile: dest: ~/.forward - regexp: "{{ root_email }}" - line: "{{ root_email }}" + regexp: "{{ common_root_email }}" + line: "{{ common_root_email }}" create: yes