Fix indentation on dokuwiki task main.yml
Buggin the shit outta me man
This commit is contained in:
parent
52e1001cc9
commit
d61ea20b5a
@ -3,62 +3,62 @@
|
|||||||
---
|
---
|
||||||
- name: Install, configure, and start Dokuwiki
|
- name: Install, configure, and start Dokuwiki
|
||||||
block:
|
block:
|
||||||
- name: Set up Apache
|
- name: Set up Apache
|
||||||
block:
|
block:
|
||||||
- name: Create webroot
|
- name: Create webroot
|
||||||
file:
|
file:
|
||||||
path: "{{ dokuwiki_webroot }}"
|
path: "{{ dokuwiki_webroot }}"
|
||||||
mode: "0755"
|
mode: "0755"
|
||||||
recurse: yes
|
recurse: yes
|
||||||
state: directory
|
state: directory
|
||||||
- name: Check for existing installation
|
- name: Check for existing installation
|
||||||
stat:
|
stat:
|
||||||
path: "{{ dokuwiki_webroot }}/index.php"
|
path: "{{ dokuwiki_webroot }}/index.php"
|
||||||
register: stat_webroot_index
|
register: stat_webroot_index
|
||||||
- name: Install Dokuwiki
|
- name: Install Dokuwiki
|
||||||
block:
|
block:
|
||||||
- name: Download Dokuwiki
|
- name: Download Dokuwiki
|
||||||
get_url:
|
get_url:
|
||||||
dest: /var/www/dokuwiki.tgz
|
dest: /var/www/dokuwiki.tgz
|
||||||
url: "{{ dokuwiki_tgz }}"
|
url: "{{ dokuwiki_tgz }}"
|
||||||
- name: Extract Dokuwiki
|
- name: Extract Dokuwiki
|
||||||
unarchive:
|
unarchive:
|
||||||
src: /var/www/dokuwiki.tgz
|
src: /var/www/dokuwiki.tgz
|
||||||
remote_src: yes
|
remote_src: yes
|
||||||
dest: "{{ dokuwiki_webroot }}"
|
dest: "{{ dokuwiki_webroot }}"
|
||||||
extra_opts: [--strip-components=1]
|
extra_opts: [--strip-components=1]
|
||||||
notify: restart apache
|
notify: restart apache
|
||||||
- name: Chown webroot
|
- name: Chown webroot
|
||||||
file:
|
file:
|
||||||
path: "{{ dokuwiki_webroot }}"
|
path: "{{ dokuwiki_webroot }}"
|
||||||
state: directory
|
state: directory
|
||||||
recurse: yes
|
recurse: yes
|
||||||
owner: www-data
|
owner: www-data
|
||||||
group: www-data
|
group: www-data
|
||||||
- name: Cleanup
|
- name: Cleanup
|
||||||
file:
|
file:
|
||||||
path: /var/www/dokuwiki.tgz
|
path: /var/www/dokuwiki.tgz
|
||||||
state: absent
|
state: absent
|
||||||
when: not stat_webroot_index.stat.exists
|
when: not stat_webroot_index.stat.exists
|
||||||
- name: Copy over virtual host configs
|
- name: Copy over virtual host configs
|
||||||
template:
|
template:
|
||||||
src: apache2-vhost-ssl.conf
|
src: apache2-vhost-ssl.conf
|
||||||
dest: "/etc/apache2/sites-available/{{ dokuwiki_url }}.conf"
|
dest: "/etc/apache2/sites-available/{{ dokuwiki_url }}.conf"
|
||||||
notify: restart apache
|
notify: restart apache
|
||||||
- name: Enable config
|
- name: Enable config
|
||||||
command:
|
command:
|
||||||
cmd: "a2ensite {{ dokuwiki_url }}.conf"
|
cmd: "a2ensite {{ dokuwiki_url }}.conf"
|
||||||
creates: "/etc/apache2/sites-enabled/{{ dokuwiki_url }}.conf"
|
creates: "/etc/apache2/sites-enabled/{{ dokuwiki_url }}.conf"
|
||||||
notify: restart apache
|
notify: restart apache
|
||||||
- name: Generate certificate
|
- name: Generate certificate
|
||||||
include_role:
|
include_role:
|
||||||
name: https
|
name: https
|
||||||
vars:
|
vars:
|
||||||
website_url: "{{ dokuwiki_url }}"
|
website_url: "{{ dokuwiki_url }}"
|
||||||
website_webroot: "{{ dokuwiki_webroot }}"
|
website_webroot: "{{ dokuwiki_webroot }}"
|
||||||
- name: Template out backup module:
|
- name: Template out backup module:
|
||||||
template:
|
template:
|
||||||
src: "backup.sh"
|
src: "backup.sh"
|
||||||
dest: "/opt/backups/modules"
|
dest: "/opt/backups/modules"
|
||||||
mode: "0600"
|
mode: "0600"
|
||||||
become: yes
|
become: yes
|
||||||
|
Loading…
Reference in New Issue
Block a user