Skip to content

Commit

Permalink
Remove unused variable.
Browse files Browse the repository at this point in the history
  • Loading branch information
robertdebock committed Jan 4, 2021
1 parent 24fcbd2 commit 67b2ffe
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 15 deletions.
7 changes: 6 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@
same "printed page" as the copyright notice for easier
identification within third-party archives.

Copyright 2020 Robert de Bock ([email protected])
Copyright 2021 Robert de Bock ([email protected])

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
3 changes: 0 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
3 changes: 0 additions & 3 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
7 changes: 0 additions & 7 deletions tasks/assert.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 67b2ffe

Please sign in to comment.