Disable default Apache vhost on mailman servers

The apache2 package installs a "default" vhost automatically.
Disable it, since it interferes with vhost matching on the
multi-site lists.openstack.org server. These vhosts are not enabled
on our production servers, so this makes testing more like
production.

Change-Id: I32a3cea034ac0b198ec1f4610cc096a4502306e6
This commit is contained in:
Jeremy Stanley 2021-12-18 03:01:20 +00:00
parent 05044aad41
commit 17e3977eaf
1 changed files with 5 additions and 0 deletions

View File

@ -17,6 +17,11 @@
loop_var: a2_mod
notify: mailman restart apache2
- name: Make sure packaged default site disabled
command: a2dissite 000-default.conf
args:
removes: /etc/apache2/sites-enabled/000-default.conf
- name: Install mailman
package:
name: