Jinja Apache2 f missing 2

This commit is contained in:
Guillem Hernandez Sola
2025-06-19 09:22:29 +02:00
parent f78eb53c46
commit 8a349bbdca
2 changed files with 4 additions and 4 deletions

View File

@@ -29,7 +29,7 @@
#Copia el archivo de configuración hosts de Apache2 al directorio correspondiente
- name: Copiar archivo de configuración de hosts de Apache2
ansible.builtin.copy:
template:
src: ../templates/hosts.conf.j2 #Ruta al archivo de configuración local
dest: /etc/apache2/sites-available/000-default.conf #Ruta de destino en el servidor
owner: www-data #Propietario del archivo

View File

@@ -1,7 +1,7 @@
<VirtualHost *:80>
ServerAdmin {{ ansible_hostname }}@{{ ansible_domain }}
ServerName {{ ansible_hostname }}.{{ ansible_domain }}
ServerAlias {{ ansible_hostname }}.{{ ansible_domain }}
ServerAdmin {{ ansible_hostname }}
ServerName {{ ansible_hostname }}
ServerAlias {{ ansible_hostname }}
DocumentRoot /var/www/html