Fix dokuwiki role clobbering existing installs

WHOOPS THAT'S KINDA BAD OH FUCK
This commit is contained in:
Salt 2020-02-20 03:21:04 -06:00
parent 1a8b0ff6be
commit 0f8ed190b7

View File

@ -13,7 +13,7 @@
state: directory
- name: Check for existing installation
stat:
path: "{{ dokuwiki_webroot }}/index.html"
path: "{{ dokuwiki_webroot }}/index.php"
register: stat_webroot_index
- name: Install Dokuwiki
block:
@ -27,13 +27,6 @@
remote_src: yes
dest: "{{ dokuwiki_webroot }}"
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
file:
path: "{{ dokuwiki_webroot }}"