you can use command module or shell module to execute any linux command inside a playbook. for more details you can go through these links: http://docs.ansible.com/ansible/latest/command_module.html http://docs.ansible.com/ansible/latest/shell_module.html <http://docs.ansible.com/ansible/latest/shell_module.html>
On Monday, August 28, 2017 at 5:06:33 AM UTC+5:30, Tcpip wrote: > > Hi all, > > how can I run a linux command inside a playbook when in finished the tasks? > > > thanks. > -- 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 [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/b1739573-47e3-4f75-8b38-31560c23e767%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
