Created
April 18, 2020 17:23
-
-
Save lanefu/b17bafad84e1f2154deccd3f22fffa04 to your computer and use it in GitHub Desktop.
quick and dirty ansible playbook for crunch-on-arm
This file contains 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: [ '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