roles/apache: Support setting ServerTokens

The `apache_server_tokens` variable can now be set, which controls the
value of the `ServerTokens` directive. If the variable is set, the
`ServerTokens` directive will be added to the `00-servername.conf` file.
jenkins-master
Dustin 2018-06-23 13:56:16 -05:00
parent 10d6b52460
commit a02ddbb53f
1 changed files with 4 additions and 0 deletions

View File

@ -10,3 +10,7 @@ ServerName {{ apache_server_name }}
{% else %} {% else %}
#ServerName www.example.com:80 #ServerName www.example.com:80
{% endif %} {% endif %}
{% if apache_server_tokens is defined %}
ServerTokens {{ apache_server_tokens }}
{% endif %}