From 67b2ffe1fcc0162ee1d6070325e9f6e968a83b37 Mon Sep 17 00:00:00 2001 From: Robert de Bock Date: Mon, 4 Jan 2021 13:19:29 +0100 Subject: [PATCH] Remove unused variable. --- .pre-commit-config.yaml | 7 ++++++- LICENSE | 2 +- README.md | 3 --- defaults/main.yml | 3 --- tasks/assert.yml | 7 ------- 5 files changed, 7 insertions(+), 15 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index b078340..338dc31 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,7 +1,7 @@ --- repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v3.3.0 + rev: v3.4.0 hooks: - id: trailing-whitespace - id: end-of-file-fixer @@ -18,3 +18,8 @@ repos: hooks: - id: ansible-lint pass_filenames: false + + - repo: https://github.com/robertdebock/pre-commit + rev: v1.0.0 + hooks: + - id: ansible_role_find_unused_variable diff --git a/LICENSE b/LICENSE index bd15893..e770af8 100644 --- a/LICENSE +++ b/LICENSE @@ -187,7 +187,7 @@ same "printed page" as the copyright notice for easier identification within third-party archives. - Copyright 2020 Robert de Bock (robert@meinit.nl) + Copyright 2021 Robert de Bock (robert@meinit.nl) Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/README.md b/README.md index 8d3a754..0c64279 100644 --- a/README.md +++ b/README.md @@ -92,9 +92,6 @@ httpd_ssl_servername: "{{ ansible_fqdn }}" # For SSL a TCP port is required. httpd_ssl_port: 443 -# Set ProxyPreserveHost -httpd_proxy_preserve_host: On - # SSL Certificate: httpd_openssl_crt: "{{ httpd_openssl_crt_directory }}/apache-httpd.crt" diff --git a/defaults/main.yml b/defaults/main.yml index 4fbb1b1..a011c09 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -13,9 +13,6 @@ httpd_ssl_servername: "{{ ansible_fqdn }}" # For SSL a TCP port is required. httpd_ssl_port: 443 -# Set ProxyPreserveHost -httpd_proxy_preserve_host: On - # SSL Certificate: httpd_openssl_crt: "{{ httpd_openssl_crt_directory }}/apache-httpd.crt" diff --git a/tasks/assert.yml b/tasks/assert.yml index e6889c9..b8982c8 100644 --- a/tasks/assert.yml +++ b/tasks/assert.yml @@ -33,13 +33,6 @@ - httpd_ssl_port != httpd_port quiet: yes -- name: test if httpd_proxy_preserve_host is set correctly - assert: - that: - - httpd_proxy_preserve_host is defined - - httpd_proxy_preserve_host is boolean - quiet: yes - - name: test if httpd_locations is set correctly assert: that: