Fix dokuwiki role clobbering existing installs
WHOOPS THAT'S KINDA BAD OH FUCK
This commit is contained in:
parent
1a8b0ff6be
commit
0f8ed190b7
@ -13,7 +13,7 @@
|
|||||||
state: directory
|
state: directory
|
||||||
- name: Check for existing installation
|
- name: Check for existing installation
|
||||||
stat:
|
stat:
|
||||||
path: "{{ dokuwiki_webroot }}/index.html"
|
path: "{{ dokuwiki_webroot }}/index.php"
|
||||||
register: stat_webroot_index
|
register: stat_webroot_index
|
||||||
- name: Install Dokuwiki
|
- name: Install Dokuwiki
|
||||||
block:
|
block:
|
||||||
@ -27,13 +27,6 @@
|
|||||||
remote_src: yes
|
remote_src: yes
|
||||||
dest: "{{ dokuwiki_webroot }}"
|
dest: "{{ dokuwiki_webroot }}"
|
||||||
extra_opts: [--strip-components=1]
|
extra_opts: [--strip-components=1]
|
||||||
- name: Create data directory
|
|
||||||
file:
|
|
||||||
path: "/var/dokuwiki"
|
|
||||||
state: directory
|
|
||||||
mode: 0700
|
|
||||||
owner: www-data
|
|
||||||
group: www-data
|
|
||||||
- name: Chown webroot
|
- name: Chown webroot
|
||||||
file:
|
file:
|
||||||
path: "{{ dokuwiki_webroot }}"
|
path: "{{ dokuwiki_webroot }}"
|
||||||
|
Loading…
Reference in New Issue
Block a user