Sfoglia il codice sorgente

Merge pull request #191 from jplock/jp-hostname

Set a ServerName for apache (fixes #187)
Luke Cyca 11 anni fa
parent
commit
2ef34ef1db
2 ha cambiato i file con 5 aggiunte e 0 eliminazioni
  1. 4
    0
      roles/common/tasks/main.yml
  2. 1
    0
      roles/common/templates/fqdn.j2

+ 4
- 0
roles/common/tasks/main.yml Vedi File

43
   command: a2enmod headers creates=/etc/apache2/mods-enabled/headers.load
43
   command: a2enmod headers creates=/etc/apache2/mods-enabled/headers.load
44
   notify: restart apache
44
   notify: restart apache
45
 
45
 
46
+- name: Set ServerName for Apache
47
+  template: src=fqdn.j2 dest=/etc/apache2/conf.d/fqdn
48
+  notify: restart apache
49
+
46
 - include: encfs.yml tags=encfs
50
 - include: encfs.yml tags=encfs
47
 - include: users.yml tags=users
51
 - include: users.yml tags=users
48
 - include: ssl.yml tags=ssl
52
 - include: ssl.yml tags=ssl

+ 1
- 0
roles/common/templates/fqdn.j2 Vedi File

1
+ServerName {{ domain }}

Loading…
Annulla
Salva