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 - 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 - name: install SVN pre-reqs
package: package:

View file

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