1
0
Fork 0
mirror of https://github.com/DO1JLR/ansible_role_websvn.git synced 2024-08-16 10:29:49 +02:00

check out websvn release

This commit is contained in:
L3D 2020-08-03 14:05:53 +02:00
parent ea04e8c7d9
commit f34bd91f3d
No known key found for this signature in database
GPG key ID: 5215C3441797AB2B
4 changed files with 23 additions and 2 deletions

View file

@ -1,6 +1,10 @@
---
websvn__manage_packages: true
websvn__state: 'present'
websvn__web_user: nginx
websvn__web_group: nginx
websvn__version: 2.5
# should we do a version check? (recomended)
submodules_versioncheck: false

View file

@ -13,7 +13,7 @@
name: "{{ websvn__packages }}"
state: "{{ websvn__state }}"
register: websvn
failed_when: false
ignore_errors: true
- include_tasks: manual_install_websvn.yml
when: websvn.failed | bool

View file

@ -0,0 +1,17 @@
---
- name: make sure /var/www exist
become: true
file:
path: /var/www
recurse: yes
state: directory
owner: "{{ websvn__web_user }}"
group: "{{ websvn__web_group }}"
- name: clone websvn
become: true
become_user: "{{ websvn__web_user }}"
git:
repo: https://github.com/websvnphp/websvn.git
dest: /var/www/websvn
version: "{{ websvn__version }}"

View file

@ -12,6 +12,6 @@ websvn__packages:
# versionscheck
playbook_version_number: 8 # should be over ninethousand
playbook_version_number: 12 # should be over ninethousand
playbook_version_path: 'role-websvn_roles-ansible_github.com.version'