diff --git a/roles/mail_forwarder/tasks/main.yml b/roles/mail_forwarder/tasks/main.yml index 0e6ee0dd5a78bb57720a193e8317526129ea3fec..ac4f96a3979379f3434207d6697635e209287ebb 100644 --- a/roles/mail_forwarder/tasks/main.yml +++ b/roles/mail_forwarder/tasks/main.yml @@ -71,8 +71,8 @@ enabled: true - name: Retrieve IPv4 addresses of SMTP relay host - shell: "getent ahostsv4 '{{ smtp_relay_host }}' | awk '{ print $1 }' | sort -u" # noqa 306 - # [306] Shells that use pipes should set the pipefail option + shell: "getent ahostsv4 '{{ smtp_relay_host }}' | awk '{ print $1 }' | sort -u" # noqa risky-shell-pipe + # [risky-shell-pipe] Shells that use pipes should set the pipefail option # The getent ahostsv4 command has non-zero exit code if the # supplies name cannot be resolved. However, that is a valid # use-case for extracting this information. It effectively means @@ -82,8 +82,8 @@ register: smtp_relay_host_ipv4 - name: Retrieve IPv6 addresses of SMTP relay host - shell: "getent ahostsv6 '{{ smtp_relay_host }}' | awk '{ print $1 }' | grep -v '^::ffff:' | sort -u" # noqa 306 - # [306] Shells that use pipes should set the pipefail option + shell: "getent ahostsv6 '{{ smtp_relay_host }}' | awk '{ print $1 }' | grep -v '^::ffff:' | sort -u" # noqa risky-shell-pipe + # [risky-shell-pipe] Shells that use pipes should set the pipefail option # The getent ahostsv6 command has non-zero exit code if the # supplies name cannot be resolved. However, that is a valid # use-case for extracting this information. It effectively means