summaryrefslogtreecommitdiffstats
path: root/wiki/tasks
diff options
context:
space:
mode:
authorSacha Chua <sacha@sachachua.com>2022-10-11 20:40:32 -0400
committerSacha Chua <sacha@sachachua.com>2022-10-11 20:41:07 -0400
commit8e290130b47b7f3b9d442c8d6531218eb2f09867 (patch)
treec8fab9bc27ab3f447524939ea8b2940b6080fba1 /wiki/tasks
parent6d1743c83e239806b1b6fb635e184a59a5f28f5a (diff)
downloademacsconf-ansible-8e290130b47b7f3b9d442c8d6531218eb2f09867.tar.xz
emacsconf-ansible-8e290130b47b7f3b9d442c8d6531218eb2f09867.zip
Yay, pads are created based on the talks.json file
Also, the playbook waits until the pad is up
Diffstat (limited to '')
-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