Created
April 3, 2018 02:35
Ansible upgrade prep playbook OpenBSD 6.3
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- 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