-
Notifications
You must be signed in to change notification settings - Fork 0
/
playbook.yaml
65 lines (53 loc) · 1.62 KB
/
playbook.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
---
- hosts: 127.0.0.1
become: true
tasks:
- apt: update_cache=yes
- name: Install a list of packages
apt:
name:
- build-essential
- manpages-dev
- gdb
- bison
- autoconf
- automake
- cmake
- libfftw3-dev
state: present
update_cache: yes
- name: Unarchive a gromacs file that needs to be downloaded
unarchive:
src: http://ftp.gromacs.org/pub/gromacs/gromacs-2019.3.tar.gz
dest: /home/codio/workspace/
remote_src: yes
- name: Create a directory build
file:
path: /home/codio/workspace/gromacs-2019.3/build
state: directory
mode: '0755'
- apt: update_cache=yes
- name: Setup environment variables
shell:
chdir: /home/codio/workspace/gromacs-2019.3/build/
cmd: cmake .. -DGMX_BUILD_OWN_FFTW=ON -DREGRESSIONTEST_DOWNLOAD=ON
- name: Make file
shell:
chdir: /home/codio/workspace/gromacs-2019.3/build/
cmd: make
- name: Make check
shell:
chdir: /home/codio/workspace/gromacs-2019.3/build/
cmd: make check
- name: install
shell:
chdir: /home/codio/workspace/gromacs-2019.3/build/
cmd: sudo make install
- name: set compiler
shell:
chdir: /home/codio/workspace/gromacs-2019.3/build/
cmd: sudo cmake .. -DCMAKE_C_COMPILER=gcc
- name: start version
shell: source /usr/local/gromacs/bin/GMXRC; gmx pdb2gmx --version
args:
executable: /bin/bash