@@ -87,4 +87,12 @@
- say:
message: "Tache terminée"
when:
- - order: "playbook"
+ - order: "playbook"
+
+ - name: "Stop jarvis"
+ neurons:
+ - say:
+ message: "Aurevoir"
+ - kill_switch
+ when:
+ - order: "ferme-toi"
@@ -5,3 +5,4 @@ from script import Script
from command import Command
from ansible_tasks import Ansible_tasks
from sleep import Sleep
+from kill_switch import Kill_switch
@@ -0,0 +1 @@
@@ -0,0 +1,9 @@
+from neurons import Neurone
+import sys
+class Kill_switch(Neurone):
+ def __init__(self, *args , **kwargs):
+ Neurone.__init__(self)
+ sys.exit()