summaryrefslogtreecommitdiffstats
path: root/ansible/roles/gsm-tester
diff options
context:
space:
mode:
Diffstat (limited to 'ansible/roles/gsm-tester')
-rw-r--r--ansible/roles/gsm-tester/files/60-sispmctl.rules4
-rw-r--r--ansible/roles/gsm-tester/handlers/main.yml6
-rw-r--r--ansible/roles/gsm-tester/tasks/main.yml6
3 files changed, 16 insertions, 0 deletions
diff --git a/ansible/roles/gsm-tester/files/60-sispmctl.rules b/ansible/roles/gsm-tester/files/60-sispmctl.rules
new file mode 100644
index 0000000..4c1f562
--- /dev/null
+++ b/ansible/roles/gsm-tester/files/60-sispmctl.rules
@@ -0,0 +1,4 @@
+SUBSYSTEM=="usb", ATTR{idVendor}=="04b4", ATTR{idProduct}=="fd10", GROUP="osmo-gsm-tester", MODE="660"
+SUBSYSTEM=="usb", ATTR{idVendor}=="04b4", ATTR{idProduct}=="fd11", GROUP="osmo-gsm-tester", MODE="660"
+SUBSYSTEM=="usb", ATTR{idVendor}=="04b4", ATTR{idProduct}=="fd12", GROUP="osmo-gsm-tester", MODE="660"
+SUBSYSTEM=="usb", ATTR{idVendor}=="04b4", ATTR{idProduct}=="fd13", GROUP="osmo-gsm-tester", MODE="660"
diff --git a/ansible/roles/gsm-tester/handlers/main.yml b/ansible/roles/gsm-tester/handlers/main.yml
new file mode 100644
index 0000000..fb1b9ca
--- /dev/null
+++ b/ansible/roles/gsm-tester/handlers/main.yml
@@ -0,0 +1,6 @@
+---
+
+- name: restart udev
+ service:
+ name: udev
+ state: restarted
diff --git a/ansible/roles/gsm-tester/tasks/main.yml b/ansible/roles/gsm-tester/tasks/main.yml
index 1840769..954953d 100644
--- a/ansible/roles/gsm-tester/tasks/main.yml
+++ b/ansible/roles/gsm-tester/tasks/main.yml
@@ -245,3 +245,9 @@
- name: install sispmctl (usb power socket)
apt:
name: sispmctl
+
+- name: allow group osmo-gsm-tester to access sispm devices
+ copy:
+ src: 60-sispmctl.rules
+ dest: /etc/udev/rules.d/
+ notify: restart udev