summaryrefslogtreecommitdiffstats
path: root/wiki/tasks
diff options
context:
space:
mode:
Diffstat (limited to 'wiki/tasks')
-rw-r--r--wiki/tasks/main.yaml33
1 files changed, 33 insertions, 0 deletions
diff --git a/wiki/tasks/main.yaml b/wiki/tasks/main.yaml
new file mode 100644
index 0000000..c685515
--- /dev/null
+++ b/wiki/tasks/main.yaml
@@ -0,0 +1,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