blob: c685515c194edbe75ce0d52e3a87ef512af77aed (
plain) (
tree)
|
|
---
- 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
|