Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
H
HEV - High Energy Ventilator
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
5
Issues
5
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
HEV - High Energy Ventilator
Commits
a4390a55
Commit
a4390a55
authored
Mar 10, 2021
by
Benjamin Mummery
💻
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated ansible script to point to release/ui rather than ui_dev
parent
182a89b3
Pipeline
#1052
failed
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
35 additions
and
35 deletions
+35
-35
install_software.yml
ansible/playbooks/install_software.yml
+35
-35
No files found.
ansible/playbooks/install_software.yml
View file @
a4390a55
---
# © Copyright CERN, Riga Technical University and University of Liverpool 2020.
# All rights not expressly granted are reserved.
#
# All rights not expressly granted are reserved.
#
# This file is part of hev-sw.
#
#
# hev-sw is free software: you can redistribute it and/or modify it under
# the terms of the GNU General Public Licence as published by the Free
# Software Foundation, either version 3 of the Licence, or (at your option)
# any later version.
#
#
# hev-sw is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public Licence
# for more details.
#
#
# You should have received a copy of the GNU General Public License along
# with hev-sw. If not, see <http://www.gnu.org/licenses/>.
#
#
# The authors would like to acknowledge the much appreciated support
# of all those involved with the High Energy Ventilator project
# (https://hev.web.cern.ch/).
...
...
@@ -26,67 +26,67 @@
remote_user
:
pi
vars
:
download_dir
:
/home/pi/Downloads
repos
:
repos
:
-
hev
tasks
:
tasks
:
-
name
:
include vars
include_vars
:
lists.yml
-
name
:
apt update, apt upgrade
apt
:
apt
:
upgrade
:
yes
update_cache
:
yes
become
:
yes
-
name
:
install software via apt
apt
:
name
:
"
{{
rpi_swlist
}}"
apt
:
name
:
"
{{
rpi_swlist
}}"
state
:
latest
become
:
yes
-
name
:
mk sw dir
file
:
path
:
/home/pi/sw/bin
state
:
directory
-
name
:
copy platformio script
template
:
src=platform-io.sh dest={{ download_dir }} owner=pi group=pi mode=0755
#- name: copy hev-display script
#template: src=hev-display.sh dest={{ download_dir }} owner=pi group=pi mode=0755
#- name: copy apache script
#template: src=setup_apache.sh dest={{ download_dir }} owner=pi group=pi mode=0755
#- name: install hev-display
#command: "{{ download_dir }}/hev-display.sh"
-
name
:
update PATH
args
:
chdir
:
/etc/profile.d
shell
:
echo "export PATH=${PATH}:{{ ansible_env.HOME }}/.platformio/penv/bin" > env.sh
become
:
yes
become_user
:
root
-
name
:
clone git repo
git
:
git
:
repo
:
https://ohwr.org/project/hev.git
dest
:
"
{{
ansible_env.HOME
}}/hev"
version
:
"
ui_dev
"
version
:
"
release/ui
"
-
name
:
install platformio
command
:
"
{{
download_dir
}}/platform-io.sh"
#- name: pip install packages
#pip:
#executable: /usr/bin/pip3
#name: "{{ pip_list }}"
#name: "{{ pip_list }}"
-
name
:
pip install packages as root
pip
:
executable
:
/usr/bin/pip3
name
:
"
{{
pip_list
}}"
name
:
"
{{
pip_list
}}"
become
:
yes
-
name
:
install python requirements inside virtual environment
...
...
@@ -114,7 +114,7 @@
#ignore_errors: True
#- name: install hev-display-pi4 via apt
#apt:
#apt:
#name: hev-display-pi4
#state: latest
#update_cache: yes
...
...
@@ -122,20 +122,20 @@
#become: yes
#- name: install hev-display-pi1 via apt
#apt:
#apt:
#name: hev-display-pi1
#state: latest
#update_cache: yes
#when: pi4 is failed
#become: yes
#- name: link fonts for hev-display
#file:
#src: "/usr/share/fonts/truetype/dejavu"
#dest: "/usr/local/qt5pi/lib/fonts"
#state: link
#become: yes
#- name: install hev-display systemd service
#copy:
#src: "{{ ansible_env.HOME }}/hev/hev-display/extras/systemd/hev-display.service"
...
...
@@ -156,12 +156,12 @@
#become: yes
-
name
:
copy hev rules
copy
:
copy
:
src
:
"
{{
ansible_env.HOME
}}/hev/utils/hev.rules"
dest
:
"
/etc/udev/rules.d/88-hev.rules"
remote_src
:
yes
owner
:
root
group
:
root
owner
:
root
group
:
root
mode
:
0644
become
:
yes
...
...
@@ -177,7 +177,7 @@
#enabled: yes
#daemon_reload: yes
#name: hevserver
#become: yes
#become: yes
#- name: link libts
#file:
...
...
@@ -187,15 +187,15 @@
#become: yes
#- name: Adding user pi to www-data
#user:
#user:
#name: pi
#groups: www-data
#append: yes
#become: yes
#- name: install hevconf into apache
#- name: install hevconf into apache
#copy:
#src: "{{ ansible_env.HOME }}/hev/raspberry-backend/share/hev.conf"
#src: "{{ ansible_env.HOME }}/hev/raspberry-backend/share/hev.conf"
#dest: "/etc/apache2/sites-available/hev.conf"
#remote_src: yes
#become: yes
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment