summaryrefslogtreecommitdiff
path: root/roles/sublab_web/tasks/as_wikiuser.yaml
blob: adfa473f2fffe358e75a7d19e36764fd23451ded (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
---
- name: Put wiki configuration
  template:
    src=ikiwiki.setup.j2
    dest="/home/wiki-{{sublab_web_server_name}}/wiki.setup"
  notify: Rebuild ikiwiki

- name: Put wiki rebuild script
  template:
    src=ikiwiki-rebuild.sh.j2
    dest="/home/wiki-{{sublab_web_server_name}}/ikiwiki-rebuild.sh"
    mode=0755
  notify: Rebuild ikiwiki

- name: Create Template dir
  file:
    path="/home/wiki-{{sublab_web_server_name}}/templates"
    state=directory

- name: Put editpage template
  copy:
    src=ikiwiki-editpage.tmpl
    dest="/home/wiki-{{sublab_web_server_name}}/templates/editpage.tmpl"

# Updates to git are pushed automatically and should not
# go through ansible - this is for initial deployment only
- name: Clone wiki git
  git:
    dest="/home/wiki-{{sublab_web_server_name}}/wiki"
    repo=git://git.sublab.org/ikiwiki
    accept_hostkey=yes
    update=no
  notify: Rebuild ikiwiki