#!/usr/bin/env python
while True:
print "running\n"
[servers]
192.168.2.31---
- name: test stop and start test.py
hosts: servers
tasks:
- name: kill pyscript
shell: pkill -f test.py
- name: start script
command: python /test/test/py
TASK: [start script] *****************************************--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/fc1b637b-460c-4a0d-9249-001e47008a76%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to a topic in the Google Groups "Ansible Project" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ansible-project/EXxZdKpUuaw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAD8N0v-AvdoxG8Q3QFHPr3NghHwDtSHM25HeNuRqMTSS0wrrZQ%40mail.gmail.com.
All internal models of the world are approximate. ~ Sebastian Thrun