Fix server/hostname for RFC 1034/1035

This change ensures that the apache ServerName is being set to
the **ansible_hostname** fact. This ensures the Apache web server
has an appropriate server name which is compliant to the RFC.

Change-Id: Ia48dcf07d903b63cd7e5afaa2598d24dbdcb9642
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
This commit is contained in:
Kevin Carter 2016-04-17 01:09:04 -05:00
parent 59ffe5e371
commit dfd80ea8f8
No known key found for this signature in database
GPG Key ID: 69FEFFC5E2D9273F

View File

@ -49,7 +49,7 @@
- name: Ensure Apache ServerName
lineinfile:
dest: "/etc/apache2/apache2.conf"
line: "ServerName {{ inventory_hostname }}"
line: "ServerName {{ ansible_hostname }}"
notify:
- Restart Apache
tags: