blob: 0fa2336e51ff89268c69b885cf6b2896cec33e8f (
plain) (
tree)
|
|
---
- name: Set up packages
ansible.builtin.apt:
update_cache: true
pkg:
- ikiwiki
- git
- openssh-server
- libimage-magick-perl
- libtext-csv-perl
- libxml-writer-perl
- imagemagick
- nginx
- wget
state: present
- name: Create ikiwiki group
group:
name: ikiwiki
state: present
- name: Create ikiwiki user
user:
name: ikiwiki
group: ikiwiki
state: present
- debug:
var: docker
- name: Set up or update repositories
ansible.builtin.git:
repo: git://git.emacsconf.org/emacsconf-wiki
dest: "{{ ikiwiki_src_dir }}"
when: not docker|d(false)
- name: Template the config
ansible.builtin.template:
src: emacsconf.setup
dest: "{{ ikiwiki_path }}/emacsconf.setup"
owner: ikiwiki
- name: Copy Ikiwiki plugins
template:
src: "{{ item }}"
dest: "{{ ikiwiki_plugin_path }}"
loop:
- copyright.pm
- htmlscrubber.pm
- license.pm
- include: docker.yml
when: docker is true
- name: Chown all the files to ikiwiki
file:
dest: "{{ ikiwiki_path }}"
owner: ikiwiki
group: ikiwiki
recurse: true
- name: Regenerate all the files
shell: ikiwiki --setup "{{ ikiwiki_path }}/emacsconf.setup" --rebuild --wrappers
register: output
- debug:
var: output
|