Skip to content

Instantly share code, notes, and snippets.

@nullstream
Created April 3, 2018 02:35
Show Gist options
  • Save nullstream/47543b8c0fbc4c82884ace3e49c99d0a to your computer and use it in GitHub Desktop.
Save nullstream/47543b8c0fbc4c82884ace3e49c99d0a to your computer and use it in GitHub Desktop.
Ansible upgrade prep playbook OpenBSD 6.3
---
- hosts: openbsd
become: yes
become_method: doas
gather_facts: no
tasks:
- name: "Download bsd.rd"
#shell: "cd /; ftp http://cloudflare.cdn.openbsd.org/pub/OpenBSD/6.3/`uname -m`/bsd.rd"
shell: "cd /; ftp https://cdn.openbsd.org/pub/OpenBSD/6.3/`uname -m`/bsd.rd"
- name: "Download SHA256.sig"
shell: "cd /tmp; ftp https://cdn.openbsd.org/pub/OpenBSD/6.3/`uname -m`/SHA256.sig"
- name: "Update permissions bsd.rd"
shell: "chmod +x /bsd.rd"
- name: "Check signature"
shell: "cd / ; signify -C -p /etc/signify/openbsd-63-base.pub -x /tmp/SHA256.sig bsd.rd"
- name: "Cleanup tasks"
shell: "rm -r /usr/share/man ; rm -r /usr/share/compile"
- name: "Cleanup tasks 2"
shell: "cd /usr/X11R6/lib; rm libpthread-stubs.a libpthread-stubs.so.2.0 pkgconfig/pthread-stubs.pc"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment