Commit f0107735 authored by Robert Ricci's avatar Robert Ricci

Merge branch 'master' of gitlab.flux.utah.edu:ricci/mebtoday

parents 058ade52 f204c4cc
......@@ -11,12 +11,9 @@
apt: name=libtool,libusb-1.0-0-dev,librtlsdr-dev,rtl-sdr,autoconf,cmake,pkg-config,python3,python3-influxdb state=installed update_cache=true
- name: clone rtl_433
git: dest=/mebtoday/rtl_433 repo=https://github.com/merbanan/rtl_433.git update=yes
notify: build and install rtl_433
- name: make rtl_433 build directory
file: path=/mebtoday/rtl_433/build state=directory
- name: build and install rtl_433
shell: cmake ../ && make && sudo make install
args:
chdir: /mebtoday/rtl_433/build
- name: install python script
copy:
src: ../client/rtl_433_influx
......@@ -39,3 +36,8 @@
dest: /etc/systemd/system/rtl433.service
owner: root
mode: 0644
handlers:
- name: build and install rtl_433
shell: cmake ../ && make && sudo make install
args:
chdir: /mebtoday/rtl_433/build
---
- hosts: mebtoday
become_method: sudo
tasks:
- name: Rebooting
become: yes
shell: /sbin/reboot
async: 0
poll: 0
- name: Waiting for restarting
local_action: wait_for host={{ inventory_hostname }} state=started
---
- hosts: mebtoday
become_method: sudo
become: true
tasks:
- name: Update all packages to the latest version
apt:
update_cache: true
upgrade: dist
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment