diff options
author | Sacha Chua <sacha@sachachua.com> | 2022-10-11 20:40:32 -0400 |
---|---|---|
committer | Sacha Chua <sacha@sachachua.com> | 2022-10-11 20:41:07 -0400 |
commit | 8e290130b47b7f3b9d442c8d6531218eb2f09867 (patch) | |
tree | c8fab9bc27ab3f447524939ea8b2940b6080fba1 /wiki/tasks | |
parent | 6d1743c83e239806b1b6fb635e184a59a5f28f5a (diff) | |
download | emacsconf-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 'wiki/tasks')
-rw-r--r-- | wiki/tasks/main.yaml | 33 |
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 |