- name: generate thread dumps hosts: localhost user: oracle # serial: 100% <= this is not needed as that is the default vars: pid: 0 serverNames: - AdminServer
tasks: - command: "kill -3 `pgrep -f {{item}}`" # <= note that the braces are double, not single for variable interpolation with_items: serverNames register: myoutput # <= using below to display results - debug: var=myoutput -- Brian Coca -- 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-project+unsubscr...@googlegroups.com. To post to this group, send email to ansible-project@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAJ5XC8%3Dhmy_1jujfOoqcuoKFXReXpt4YLa%3DJ4mBocddEE6NU6g%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.