Jinja Apache2 f missing 2
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user