summaryrefslogtreecommitdiffstats
path: root/wiki/tasks/main.yaml
blob: c685515c194edbe75ce0d52e3a87ef512af77aed (plain) (blame)
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: Set up packages
  ansible.builtin.apt:
    pkg:
      - ikiwiki
      - git
      - openssh-server
      - wget
    state: present
- name: Create ikiwiki user
  user:
    name: ikiwiki
- name: Set up SSH directory
  ansible.builtin.file:
    path: /home/ikiwiki/.ssh
    state: directory
    mode: '0700'    
- name: Install SSH key for EmacsConf wiki
  ansible.builtin.get_url:
    url: https://emacsconf.org/id_rsa_anon_git_emacsconf
    dest: /home/ikiwiki/.ssh/id_rsa_anon_git_emacsconf
    mode: '0600'
    owner: 'ikiwiki'
- name: Set up or update repositories
  become: ikiwiki
  ansible.builtin.git:
    repo: git://git.emacsconf.org/emacsconf-wiki
    dest: /home/ikiwiki/emacsconf-wiki
- name: Template the config
  ansible.builtin.template:
    src: /templates/emacsconf.setup
    dest: /home/ikiwiki/emacsconf.setup
    owner: ikiwiki