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-edit | |
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-edit')
-rw-r--r-- | wiki-edit/tasks/main.yaml | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/wiki-edit/tasks/main.yaml b/wiki-edit/tasks/main.yaml new file mode 100644 index 0000000..570c953 --- /dev/null +++ b/wiki-edit/tasks/main.yaml @@ -0,0 +1,42 @@ +--- +- name: Set up packages + become: yes + block: + - name: Add snapshot repository + ansible.builtin.apt_repository: + repo: deb http://emacs.ganneff.de/ buster main + - name: Remove old package + ansible.builtin.apt: + name: emacs + state: absent + - name: Install Emacs snapshot + ansible.builtin.apt: + name: emacs-snapshot-nox + state: present +- name: Set up or update repositories + block: + - name: Check out wiki repository + ansible.builtin.git: + repo: git://git.emacsconf.org/emacsconf-wiki + dest: ~/emacsconf-wiki + - name: Check out emacsconf-el + ansible.builtin.git: + repo: git@git.emacsconf.org:pub/emacsconf-el + dest: ~/emacsconf-el + - name: Check out emacsconf-2022-private + ansible.builtin.git: + repo: git@git.emacsconf.org:emacsconf-2022-private + dest: ~/emacsconf-2022-private + register: private +- name: Publish + tags: publish + block: + - name: Publish the schedule + command: emacs -l ~/.emacs.d/init.el --batch --exec '(emacsconf-generate-main-schedule)' + when: private.changed and slug is not defined + - name: Update a specific talk's nav page + tags: publish-talk + command: emacs -l ~/.emacs.d/init.el --batch --exec '(emacsconf-with-talk-heading "{{ slug }}" (emacsconf-update-talk))' + when: slug is defined + - name: Commit the wiki and push + shell: cd ~/emacsconf-wiki; git commit -m 'Update from ansible' -a; git push |