[zamok_apache] Pepcransification
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>certbot_on_virtu
							parent
							
								
									6774cca43c
								
							
						
					
					
						commit
						408c857f81
					
				| 
						 | 
					@ -0,0 +1,12 @@
 | 
				
			||||||
 | 
					---
 | 
				
			||||||
 | 
					glob_adh:
 | 
				
			||||||
 | 
					  apache:
 | 
				
			||||||
 | 
					    listen_local:
 | 
				
			||||||
 | 
					      - "127.0.0.1:80"
 | 
				
			||||||
 | 
					      - "[::1]:80"
 | 
				
			||||||
 | 
					    listen_network: "{{ query('ldap', 'ip', ansible_hostname, 'adm') | ipwrap }}"
 | 
				
			||||||
 | 
					    club_vhosts:
 | 
				
			||||||
 | 
					      - from: pot-vieux.crans.org
 | 
				
			||||||
 | 
					        to: club-vieux/www
 | 
				
			||||||
 | 
					      - from: med.crans.org
 | 
				
			||||||
 | 
					        to: club-med/www
 | 
				
			||||||
| 
						 | 
					@ -2,6 +2,8 @@
 | 
				
			||||||
---
 | 
					---
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- hosts: adh_server
 | 
					- hosts: adh_server
 | 
				
			||||||
 | 
					  vars:
 | 
				
			||||||
 | 
					    adh: '{{ glob_adh | combine(loc_adh | default({}), recursive=True) }}'
 | 
				
			||||||
  roles:
 | 
					  roles:
 | 
				
			||||||
    - zamok-tools
 | 
					    - zamok-tools
 | 
				
			||||||
    - postfix
 | 
					    - postfix
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,4 +1,5 @@
 | 
				
			||||||
pot-vieux.crans.org club-vieux/www
 | 
					{{ ansible_header | comment }}
 | 
				
			||||||
med.crans.org club-med/www
 | 
					
 | 
				
			||||||
www.scepinvaders.com waltsburger/www
 | 
					{% for host in adh.apache.club_vhosts -%}
 | 
				
			||||||
scepinvaders.com waltsburger/www
 | 
					{{ host.from }} {{ host.to }}
 | 
				
			||||||
 | 
					{% endfor -%}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,9 +1,9 @@
 | 
				
			||||||
# If you just change the port or add more ports here, you will likely also
 | 
					{{ ansible_header | comment }}
 | 
				
			||||||
# have to change the VirtualHost statement in
 | 
					 | 
				
			||||||
# /etc/apache2/sites-enabled/000-default.conf
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
Listen 127.0.0.1:80
 | 
					{% for host in adh.apache.listen_local -%}
 | 
				
			||||||
Listen 172.16.10.31:80
 | 
					Listen {{ host }}
 | 
				
			||||||
Listen [::1]:80
 | 
					{% endfor -%}
 | 
				
			||||||
Listen [fd00::10:1e98:ecff:fe15:2c8a]:80
 | 
					{% for host in adh.apache.listen_network -%}
 | 
				
			||||||
 | 
					Listen {{ host }}:80
 | 
				
			||||||
 | 
					{% endfor -%}
 | 
				
			||||||
# vim: syntax=apache ts=4 sw=4 sts=4 sr noet
 | 
					# vim: syntax=apache ts=4 sw=4 sts=4 sr noet
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue