From 046640ebd3f22c28f95a62020ffa54893781b001 Mon Sep 17 00:00:00 2001 From: Guillem Hernandez Sola Date: Thu, 19 Jun 2025 09:26:47 +0200 Subject: [PATCH] Added new templates 2 --- training/practica-3-jinja2/apache2/templates/hosts.conf.j2 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/training/practica-3-jinja2/apache2/templates/hosts.conf.j2 b/training/practica-3-jinja2/apache2/templates/hosts.conf.j2 index 1a12490..f0d5717 100644 --- a/training/practica-3-jinja2/apache2/templates/hosts.conf.j2 +++ b/training/practica-3-jinja2/apache2/templates/hosts.conf.j2 @@ -1,7 +1,7 @@ - ServerAdmin {{ ansible_hostname }} - ServerName {{ ansible_hostname }} - ServerAlias {{ ansible_hostname }} + ServerAdmin {{ ansible_hostname }}@{{ ansible_domain }} + ServerName {{ ansible_hostname }}.{{ ansible_domain }} + ServerAlias {{ ansible_hostname }}.{{ ansible_domain }} www.{{ ansible_hostname }}.{{ ansible_domain }} DocumentRoot /var/www/html