aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Pigott <dave.pigott@linaro.org>2020-12-18 13:20:38 +0000
committerDave Pigott <dave.pigott@linaro.org>2020-12-18 13:20:38 +0000
commitb19a3fafc2152df4c547dee5592d40f1df165917 (patch)
tree136d8a4975c4baded5a400c2bff64b1901d3d0c6
parent8f05703e5286c2907ae1c981e3d01f6f37d58c86 (diff)
Correct handler to use service and correct problems in inventories
Change-Id: Icb3a528d688cb98dfb2b9f2034727c0dc31661f1
-rw-r--r--inventory/lkft-staging1
-rw-r--r--inventory/tf6
-rw-r--r--playbooks/roles/update-etc/handlers/main.yml8
3 files changed, 10 insertions, 5 deletions
diff --git a/inventory/lkft-staging b/inventory/lkft-staging
index 423de34..eda0627 100644
--- a/inventory/lkft-staging
+++ b/inventory/lkft-staging
@@ -7,6 +7,7 @@ lkft-staging-qemu-arm02.lavalab
lkft-staging-master.lavalab
[workers]
+lkft-staging-master.lavalab
lkft-staging-qemu-arm01.lavalab
lkft-staging-rpi-01.lavalab
lkft-staging-qemu-arm02.lavalab
diff --git a/inventory/tf b/inventory/tf
index 1c14c7c..e9551cf 100644
--- a/inventory/tf
+++ b/inventory/tf
@@ -25,9 +25,9 @@ instance_name=tf.validation.linaro.org
tf-master.tflab
tf-pi-worker01.tflab
tf-pi-worker02.tflab
-tf-pi-worker03.tflab
-tf-pi-worker04.tflab
-tf-pi-worker05.tflab
+#tf-pi-worker03.tflab
+#tf-pi-worker04.tflab
+#tf-pi-worker05.tflab
[workers:vars]
instance_name=tf.validation.linaro.org
diff --git a/playbooks/roles/update-etc/handlers/main.yml b/playbooks/roles/update-etc/handlers/main.yml
index d6f53af..7e0ad9b 100644
--- a/playbooks/roles/update-etc/handlers/main.yml
+++ b/playbooks/roles/update-etc/handlers/main.yml
@@ -2,10 +2,14 @@
command: crontab /etc/crontab.worker
- name: reload ser2net
- command: service ser2net reload
+ service:
+ name: ser2net
+ state: reloaded
- name: reload udev
command: udevadm control --reload-rules
- name: restart worker
- command: service lava-worker restart
+ service:
+ name: lava-worker
+ state: reloaded