dokuwiki: remove hardcoded names

This commit is contained in:
Timotej Lazar 2024-05-28 13:34:34 +02:00
parent cd8f20852e
commit f863d87fbf
2 changed files with 12 additions and 9 deletions

View file

@ -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