Skip to content

Instantly share code, notes, and snippets.

@lanefu
Created April 18, 2020 17:23
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 lanefu/b17bafad84e1f2154deccd3f22fffa04 to your computer and use it in GitHub Desktop.
Save lanefu/b17bafad84e1f2154deccd3f22fffa04 to your computer and use it in GitHub Desktop.
quick and dirty ansible playbook for crunch-on-arm
- hosts: [ 'all', '!excludehosts']
gather_facts: no
become: yes
vars:
boinc_account: CHANGEME
pre_tasks:
- name: install python
raw: '[[ $(python --version) ]] || apt update -y; apt install python -y'
- name: gather facts
setup:
tasks:
- name: install boinc
apt:
name: "{{ item }}"
state: latest
update_cache: yes
loop:
- boinc-client
- boinctui
notify: start boinc
- name: register project
command: "boinccmd --project_attach http://boinc.bakerlab.org/rosetta/ {{ boinc_account }}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment