test subversion - support Ubuntu 18.04 (#50791)

This commit is contained in:
Jordan Borean 2019-01-15 06:26:16 +10:00 committed by GitHub
parent 3f70518257
commit 91522bd9c4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 17 additions and 5 deletions

View file

@ -1,6 +1,11 @@
---
- name: load OS specific vars
include_vars: '{{ ansible_os_family }}.yml'
include_vars: '{{ item }}'
with_first_found:
- files:
- '{{ ansible_distribution }}-{{ ansible_distribution_major_version }}.yml'
- '{{ ansible_os_family }}.yml'
paths: '../vars'
- name: install SVN pre-reqs
package:

View file

@ -1,7 +1,10 @@
{% if ansible_os_family == "Debian" %}
{% if ansible_distribution_version == "14.04" %}
{# Ubuntu 14.04 conflicts with existing port 80 so we can't include the default #}
{# On Ubuntu 16.04 we can include the default config, other versions require explicit config #}
{% if ansible_distribution_version == "16.04" %}
Include /etc/apache2/apache2.conf
{% else %}
Timeout 300
KeepAlive On
MaxKeepAliveRequests 100
@ -25,8 +28,6 @@ IncludeOptional sites-enabled/*conf
Require all denied
</FilesMatch>
{% else %}
Include /etc/apache2/apache2.conf
{% endif %}
{% elif ansible_os_family == "FreeBSD" %}

View file

@ -0,0 +1,6 @@
---
subversion_packages:
- subversion
- libapache2-mod-svn
apache_user: www-data
apache_group: www-data