Multiple linux commands using command module

HI All,

I have written yaml script to get pre-checks from Linux systems before patching them. Can any one suggest on how can I re-write using command module in the ansible play book.

Vamsi

Try using facts: https://docs.ansible.com/ansible/2.5/user_guide/playbooks_variables.html#information-discovered-from-systems-facts

i would advise you to use the script module instead

https://docs.ansible.com/ansible/latest/modules/script_module.html

Hi coca .

Please help me on ansible.

1 first i want to get(fetch) files from source to ansible server

  1. What ever i got files from those files need to list the files in clients . Exist or not .

  2. If exist the files need to take safe copy . Later need to deploy the files.

This is my request bro please help me on this.

Why do you hijack other peoples threads?
It's considered a very rude behavior, so please refrain from doing so.