From 7f3147e3eede3539ca06504653741084eb3a92c3 Mon Sep 17 00:00:00 2001 From: Aaron Guise Date: Thu, 5 Oct 2023 17:06:16 +1300 Subject: [PATCH] Update lint pass --- .ansible-lint | 7 +++++++ tasks/communication.yml | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/.ansible-lint b/.ansible-lint index a4d00dd..608474c 100644 --- a/.ansible-lint +++ b/.ansible-lint @@ -1,4 +1,11 @@ +profile: basic + skip_list: # or 'skip_list' to silence them completely - experimental # all rules tagged as experimental - unnamed-task # All tasks should be named - fqcn-builtins + +warn_list: + - name[casing] + - var-naming[pattern] + - no-free-form \ No newline at end of file diff --git a/tasks/communication.yml b/tasks/communication.yml index cf3d85f..0e12bf0 100644 --- a/tasks/communication.yml +++ b/tasks/communication.yml @@ -1,5 +1,6 @@ --- - name: Postfix Configuration + when: postfix_configure block: - name: postfix | Apply postfix configuration lineinfile: @@ -38,7 +39,6 @@ name: postfix state: started enabled: yes - when: postfix_configure - name: Ensure root forwarding address is set lineinfile: