Maybe sth like:shell: screen -d -m bash /home/dell/tester_server_2/runserver.sh
--To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/1ce6131a-3783-48b7-9d3a-ae837edc1ca5%40googlegroups.com.
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.
---
- hosts: server
gather_facts: False
tasks:
- name: Run runserver.sh and save the output of script
shell: screen -dRR bash /home/dell/tester_server_2/runserver.sh
async: 99999999999
poll: 0I have already incorporated sth like that in my playbook. Now what I need is that if any of the remote nodes have been accessed by using Puttty or OpenStack Dashboard, they should display the output of the script on that individual screen. For instance, if the script I am executing contains echo "hello from ansible control node" and then goes to sleep for some time. The output on the individual user (all the nodes) should be hello form ansible control node . Each remote node should display this message on their respective screen, so that it is readable to any user that is currently sshed into the VM.To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/27d66cd6-019a-4a55-8c1c-52ece7eebe12%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/a550af88-3510-444a-ad02-ee69b9f70032%40googlegroups.com.