|
|
@ -7,7 +7,27 @@ |
|
|
|
|
|
|
|
tasks: |
|
|
|
- name: Copy files to workers |
|
|
|
become: true |
|
|
|
git: |
|
|
|
repo: https://git.swarmlab.io:3000/Lefteris/dummyservice.git |
|
|
|
dest: /project/courses/dummy |
|
|
|
force: yes |
|
|
|
force: yes |
|
|
|
- name: apt install packages |
|
|
|
become: true |
|
|
|
apt: |
|
|
|
update_cache: 'yes' |
|
|
|
force_apt_get: 'yes' |
|
|
|
install_recommends: true |
|
|
|
autoremove: true |
|
|
|
name: "{{ packages }}" |
|
|
|
vars: |
|
|
|
packages: |
|
|
|
- nodejs |
|
|
|
- name: install dependencies |
|
|
|
npm: |
|
|
|
path: "/project/course/dummy/swarmlab-app/src" |
|
|
|
state: present |
|
|
|
- name: Build app |
|
|
|
command: npm run start |
|
|
|
args: |
|
|
|
chdir: "/project/course/dummy/swarmlab-app/src" |