|
|
@@ -1,9 +1,16 @@
|
|
1
|
1
|
---
|
|
2
|
|
-- name: Install MAVProxy dependencies
|
|
|
2
|
+- name: Install mavproxy dependencies
|
|
3
|
3
|
apt: name=python-dev,python-setuptools,python-serial,python-pip,python-lxml
|
|
4
|
|
-- name: Install MAVProxy pip dependencies
|
|
|
4
|
+- name: Install mavproxy pip dependencies
|
|
5
|
5
|
pip: name=future
|
|
6
|
|
-- name: Install MAVProxy pip dependencies
|
|
|
6
|
+- name: Install mavproxy pip dependencies
|
|
7
|
7
|
pip: name=pyserial
|
|
8
|
|
-- name: Install Python 3 MAVProxy dependencies
|
|
9
|
|
- apt: name=python3,python3-dev,python3-setuptools,python3-serial,python3-pip
|
|
|
8
|
+- name: Install mavproxy
|
|
|
9
|
+ pip: name=mavproxy
|
|
|
10
|
+- name: Make the run directory
|
|
|
11
|
+ file: path=/var/log/mavproxy state=directory owner=juju
|
|
|
12
|
+- name: Copy the service config
|
|
|
13
|
+ template: src=mavproxy.service dest=/lib/systemd/system/mavproxy.service
|
|
|
14
|
+- name: Enable mavproxy
|
|
|
15
|
+ systemd: name=mavproxy daemon_reload=yes enabled=yes masked=no
|
|
|
16
|
+
|