Skip to content

Instantly share code, notes, and snippets.

@nigelbabu
Created August 26, 2016 08:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nigelbabu/4c5c8877617ccb7903bf14f3dca25a17 to your computer and use it in GitHub Desktop.
Save nigelbabu/4c5c8877617ccb7903bf14f3dca25a17 to your computer and use it in GitHub Desktop.
- name: Remove junk from BSD machines
hosts: all
remote_user: jenkins
become: yes
become_user: root
become_method: su
tasks:
- name: Give permissions
command: chflags -R nouchg /usr
- name: Fix vulnerabilities
command: /usr/sbin/pkg_admin -K /var/db/pkg fetch-pkg-vulnerabilities
- name: Make sqlite
command: make chdir=/usr/pkgsrc/databases/py-sqlite3
- name: Make install
command: make install chdir=/usr/pkgsrc/databases/py-sqlite3
- name: Clean
command: make clean chdir=/usr/pkgsrc/databases/py-sqlite3
- name: Clean deps
command: make clean-depends chdir=/usr/pkgsrc/databases/py-sqlite3
- name: Give permissions
command: chflags -R uchg /usr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment