File tree Expand file tree Collapse file tree 3 files changed +138
-0
lines changed
Expand file tree Collapse file tree 3 files changed +138
-0
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ # This Ansible playbook is a provision playbook designed to be used with
3+ # vagrant. This playbook provisions a machine suitable for micromagnetic
4+ # simulation with magpar. It is executed by the virtual machine.
5+
6+ - hosts : all
7+
8+ # We install docutils here instead of using the role directly, so that the
9+ # welcome file can be created before the superuser is added.
10+ pre_tasks :
11+
12+ - name : Install pip.
13+ apt :
14+ pkg=python-pip
15+ state=latest
16+ update_cache=yes
17+ cache_valid_time=86400
18+ sudo : yes
19+
20+ - name : Install docutils for Python to build documentation.
21+ pip :
22+ name=docutils
23+ sudo : yes
24+
25+ - name : Define directory in which to place welcome file.
26+ set_fact :
27+ WELCOME_DIR : /etc/skel/Desktop
28+
29+ - name : Create welcome directory.
30+ file :
31+ name={{ WELCOME_DIR }}
32+ state=directory
33+ sudo : yes
34+
35+ - name : Convert documentation to HTML and place in welcome directory.
36+ shell : rst2html.py /vagrant/extra_resources/welcome.rst Welcome.html
37+ chdir={{ WELCOME_DIR }}
38+ creates={{ WELCOME_DIR }}/Welcome.html
39+ sudo : yes
40+
41+ roles :
42+ - magpar
43+ - magpar_examples
44+ - xserver
45+ - { role: add_super_user, AUTOLOGIN: true }
46+ - { role: set_hostname, HOSTNAME: virtualmicromagnetics-magpar }
Original file line number Diff line number Diff line change 1+ ---
2+ # This Ansible playbook is a provision playbook designed to be used with
3+ # vagrant. This playbook provisions a machine suitable for micromagnetic
4+ # simulation with nmag. It is executed by the virtual machine.
5+
6+ - hosts : all
7+
8+ # We install docutils here instead of using the role directly, so that the
9+ # welcome file can be created before the superuser is added.
10+ pre_tasks :
11+
12+ - name : Install pip.
13+ apt :
14+ pkg=python-pip
15+ state=latest
16+ update_cache=yes
17+ cache_valid_time=86400
18+ sudo : yes
19+
20+ - name : Install docutils for Python to build documentation.
21+ pip :
22+ name=docutils
23+ sudo : yes
24+
25+ - name : Define directory in which to place welcome file.
26+ set_fact :
27+ WELCOME_DIR : /etc/skel/Desktop
28+
29+ - name : Create welcome directory.
30+ file :
31+ name={{ WELCOME_DIR }}
32+ state=directory
33+ sudo : yes
34+
35+ - name : Convert documentation to HTML and place in welcome directory.
36+ shell : rst2html.py /vagrant/extra_resources/welcome.rst Welcome.html
37+ chdir={{ WELCOME_DIR }}
38+ creates={{ WELCOME_DIR }}/Welcome.html
39+ sudo : yes
40+
41+ roles :
42+ - nmag
43+ - nmag_examples
44+ - xserver
45+ - { role: add_super_user, AUTOLOGIN: true }
46+ - { role: set_hostname, HOSTNAME: virtualmicromagnetics-nmag }
Original file line number Diff line number Diff line change 1+ ---
2+ # This Ansible playbook is a provision playbook designed to be used with
3+ # vagrant. This playbook provisions a machine suitable for micromagnetic
4+ # simulation with OOMMF. It is executed by the virtual machine.
5+
6+ - hosts : all
7+
8+ # We install docutils here instead of using the role directly, so that the
9+ # welcome file can be created before the superuser is added.
10+ pre_tasks :
11+
12+ - name : Install pip.
13+ apt :
14+ pkg=python-pip
15+ state=latest
16+ update_cache=yes
17+ cache_valid_time=86400
18+ sudo : yes
19+
20+ - name : Install docutils for Python to build documentation.
21+ pip :
22+ name=docutils
23+ sudo : yes
24+
25+ - name : Define directory in which to place welcome file.
26+ set_fact :
27+ WELCOME_DIR : /etc/skel/Desktop
28+
29+ - name : Create welcome directory.
30+ file :
31+ name={{ WELCOME_DIR }}
32+ state=directory
33+ sudo : yes
34+
35+ - name : Convert documentation to HTML and place in welcome directory.
36+ shell : rst2html.py /vagrant/extra_resources/welcome.rst Welcome.html
37+ chdir={{ WELCOME_DIR }}
38+ creates={{ WELCOME_DIR }}/Welcome.html
39+ sudo : yes
40+
41+ roles :
42+ - oommf
43+ - oommf_examples
44+ - xserver
45+ - { role: add_super_user, AUTOLOGIN: true }
46+ - { role: set_hostname, HOSTNAME: virtualmicromagnetics-oommf }
You can’t perform that action at this time.
0 commit comments