summaryrefslogtreecommitdiffstats
path: root/playbook.yaml
diff options
context:
space:
mode:
authorSacha Chua <sacha@sachachua.com>2022-10-11 12:19:46 -0400
committerSacha Chua <sacha@sachachua.com>2022-10-11 12:19:59 -0400
commit6d1743c83e239806b1b6fb635e184a59a5f28f5a (patch)
tree8e82342f150f4ec623b0ebd8291db1d88178d42c /playbook.yaml
parent1151e1fac5e7805e0cfeea89acc3b2efedb89940 (diff)
downloademacsconf-ansible-6d1743c83e239806b1b6fb635e184a59a5f28f5a.tar.xz
emacsconf-ansible-6d1743c83e239806b1b6fb635e184a59a5f28f5a.zip
Etherpad starting setup
Diffstat (limited to 'playbook.yaml')
-rw-r--r--playbook.yaml48
1 files changed, 0 insertions, 48 deletions
diff --git a/playbook.yaml b/playbook.yaml
deleted file mode 100644
index 9d87615..0000000
--- a/playbook.yaml
+++ /dev/null
@@ -1,48 +0,0 @@
-- name: Set up publishing environment
- hosts: publish
- tasks:
- - name: Set up packages
- become: yes
- block:
- - name: Set up ikiwiki
- ansible.builtin.apt:
- name: ikiwiki
- state: present
- - 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
- hosts: publish
- tasks:
- - 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