|
3 | 3 | hosts: default |
4 | 4 | gather_facts: no |
5 | 5 | roles: |
6 | | - - marvel-nccr.ansible_prerequisites |
| 6 | + - role: marvel-nccr.ansible_prerequisites |
7 | 7 |
|
| 8 | +# Note: This play could be merged with "set up the VM" but it can make sense to |
| 9 | +# connect to the VM using the user created here. Leaving it separate for the moment. |
8 | 10 | - name: Add vm user |
9 | 11 | hosts: default |
10 | 12 | gather_facts: no |
| 13 | + tags: add_user |
11 | 14 | pre_tasks: |
12 | 15 | - name: import global variables |
13 | 16 | tags: always |
|
25 | 28 | vars: |
26 | 29 | add_user_name: "{{ vm_user }}" |
27 | 30 | add_user_password: "{{ vm_password }}" |
28 | | - add_user_sudo: True |
| 31 | + add_user_groups: |
| 32 | + - "{{ vm_user }}" |
| 33 | + - sudo |
| 34 | + add_user_passwordless_sudo: true |
29 | 35 |
|
30 | 36 | # Note: it is important to pass variables to roles using the 'vars' dictionary. |
31 | 37 | # If variables are passed on the same indentation level as the role, the variable is |
|
35 | 41 | hosts: default |
36 | 42 | become: True |
37 | 43 | become_user: "{{ vm_user }}" |
38 | | - pre_tasks: |
39 | | - - name: import global variables |
40 | | - tags: always |
41 | | - include_vars: |
42 | | - file: globalconfig.yml |
43 | 44 | vars: |
44 | 45 | - release_notes: True |
45 | 46 | - run_tests: False |
|
80 | 81 | slurm_hostname: "{{ vm_hostname }}" |
81 | 82 | slurm_cpus: "{{ vm_cpus }}" |
82 | 83 | slurm_memory: "{{ vm_memory }}" |
83 | | -# - role: marvel-nccr.torque |
84 | | -# tags: torque |
85 | | -# vars: |
86 | | -# torque_hostname: "{{ vm_hostname }}" |
87 | | -# torque_cpus: "{{ vm_cpus }}" |
88 | 84 | - role: marvel-nccr.quantum_espresso |
89 | 85 | tags: quantum_espresso |
90 | 86 | vars: |
|
109 | 105 | tags: wannier90 |
110 | 106 | vars: |
111 | 107 | wannier90_code_folder: "{{ vm_codes_folder }}" |
| 108 | + - role: marvel-nccr.aiidalab |
| 109 | + tags: aiidalab |
| 110 | + vars: |
| 111 | + aiidalab_headless: "{{ vm_headless }}" |
112 | 112 | - role: marvel-nccr.aiida |
113 | 113 | tags: aiida |
114 | 114 | vars: |
115 | 115 | aiida_code_folder: "{{ vm_codes_folder }}" |
116 | 116 | aiida_localhost_cpus: "{{ vm_cpus }}" |
117 | 117 | aiida_localhost_scheduler: "{{ vm_scheduler }}" |
118 | 118 | aiida_examples_folder: "{{ vm_examples_folder }}" |
119 | | - - role: marvel-nccr.aiidalab |
120 | | - tags: aiidalab |
121 | | - vars: |
122 | | - aiidalab_headless: "{{ vm_headless }}" |
0 commit comments