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:
parent
ea04e8c7d9
commit
f34bd91f3d
4 changed files with 23 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
17
tasks/manual_install_websvn.yml
Normal file
17
tasks/manual_install_websvn.yml
Normal 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 }}"
|
|
@ -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'
|
||||
|
||||
|
|
Loading…
Reference in a new issue