test subversion - support Ubuntu 18.04 (#50791)
This commit is contained in:
parent
3f70518257
commit
91522bd9c4
3 changed files with 17 additions and 5 deletions
|
@ -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:
|
||||||
|
|
|
@ -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" %}
|
||||||
|
|
6
test/integration/targets/subversion/vars/Ubuntu-18.yml
Normal file
6
test/integration/targets/subversion/vars/Ubuntu-18.yml
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
---
|
||||||
|
subversion_packages:
|
||||||
|
- subversion
|
||||||
|
- libapache2-mod-svn
|
||||||
|
apache_user: www-data
|
||||||
|
apache_group: www-data
|
Loading…
Reference in a new issue