dokuwiki: remove hardcoded names
This commit is contained in:
parent
cd8f20852e
commit
f863d87fbf
2 changed files with 12 additions and 9 deletions
|
@ -5,17 +5,17 @@
|
|||
package:
|
||||
name: php-openssl,php-session,php-xml
|
||||
|
||||
- name: Get current dokuwiki version if any
|
||||
- name: Check if dokuwiki should be upgraded
|
||||
lineinfile:
|
||||
path: /srv/http/doku.fri.uni-lj.si/VERSION
|
||||
path: /srv/http/dokuwiki/VERSION
|
||||
search_string: '{{ dokuwiki_version }}'
|
||||
state: absent
|
||||
check_mode: true
|
||||
changed_when: false
|
||||
register: current_version
|
||||
register: is_current
|
||||
|
||||
- name: Install or upgrade dokuwiki
|
||||
when: 'current_version.found|default(0) == 0'
|
||||
when: 'is_current.found|default(0) == 0'
|
||||
block:
|
||||
- name: Download dokuwiki tarball
|
||||
get_url:
|
||||
|
@ -29,7 +29,7 @@
|
|||
|
||||
- name: Copy dokuwiki files
|
||||
copy:
|
||||
dest: /srv/http/doku.fri.uni-lj.si/
|
||||
dest: /srv/http/dokuwiki/
|
||||
src: '/var/tmp/dokuwiki-{{ dokuwiki_version }}/'
|
||||
remote_src: true
|
||||
owner: nginx
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue