summaryrefslogblamecommitdiffstats
path: root/roles/wiki/tasks/docker.yml
blob: a5d73e2c224ed6fa4f6bdc8d4d9e29bd67b9ff62 (plain) (tree)












































                                              
- name: Set up docker stuff if on docker
  apt:
    pkg:
      - lighttpd
      - supervisor
- name: Create the anon user
  user:
    name: anon
- name: Set up Ikiwiki setup
  template:
    src: emacsconf.setup
    dest: "{{ ikiwiki_path }}/emacsconf.setup"
    owner: www-data
    group: www-data
- name: Set up the ikiwiki directories
  file:
    dest: /var/www/html
    state: directory
    owner: www-data
    group: www-data
- name: Clone the bare git repo
  git:
    bare: true
    repo: "{{ ikiwiki_git_source_mount }}"
    dest: "{{ ikiwiki_bare_git_dir }}"
    version: "{{ ikiwiki_git_branch }}"
- name: Change owner
  file:
    dest: "{{ ikiwiki_bare_git_dir }}"
    recurse: true
    owner: www-data
    group: www-data
- name: Clone the working git repo
  git:
    repo: "{{ ikiwiki_bare_git_dir }}"
    dest: "{{ ikiwiki_src_dir }}"
    version: "{{ ikiwiki_git_branch }}"
- name: Copy supervisor config
  template:
    src: supervisord.conf
    dest: /etc/supervisor/conf.d/ikiwiki.conf
- name: Start lighttpd
  service:
    name: lighttpd
    state: started