aboutsummaryrefslogtreecommitdiffstats
path: root/roles/serial/tasks
diff options
context:
space:
mode:
authorbinary <me@rgoncalves.se>2020-11-10 20:46:04 +0100
committerbinary <me@rgoncalves.se>2020-11-10 20:46:04 +0100
commit0a673e300800b91342499cec9cd482b5d2d9c603 (patch)
tree752309b2f30928063340afefe39682679491a451 /roles/serial/tasks
parent89c7516b1f9ec4ce7ce2947f98f2070c242f4459 (diff)
downloadinfrastructure-0a673e300800b91342499cec9cd482b5d2d9c603.tar.gz
Fully working init for alpine vm
Diffstat (limited to 'roles/serial/tasks')
-rw-r--r--roles/serial/tasks/main.yml12
1 files changed, 12 insertions, 0 deletions
diff --git a/roles/serial/tasks/main.yml b/roles/serial/tasks/main.yml
index 95a8ff5..2db546d 100644
--- a/roles/serial/tasks/main.yml
+++ b/roles/serial/tasks/main.yml
@@ -5,3 +5,15 @@
- name: Check pyserial installation
command: python3 -m pip install pyserial
+
+- name: Ensure python scripts directory exists
+ file:
+ path: /data/python
+ recurse: true
+ state: directory
+
+- name: Copy custom serial library
+ copy:
+ src: serial_macro.py
+ dest: /data/python/serial_macro.py
+
remember that computers suck.