On 2/21/21 10:36 PM, Kiran Kumar wrote:
> This playbook check OS & then run diff cmd per OS & works fine
>
> But the Debug output is not compact .. it is verbose mode kind.. if the OS is
> not say CentOS it gives 4 to 5 lines
> stating the same .. the out is not compact .. somehow is it possible
This playbook check OS & then run diff cmd per OS & works fine
But the Debug output is not compact .. it is verbose mode kind.. if the OS
is not say CentOS it gives 4 to 5 lines stating the same .. the out is not
compact .. somehow is it possible to ignore that .. so mat be debug is not
the way
On Sun, 21 Feb 2021 at 10:06, esxi...@gmail.com wrote:
>
> Hello
>
> In below how can i skip the output when is not relevant or how to do this
> better way ?
It is not clear from your tasks or their name what you are trying to achieve.
"check OS version" - what does that mean?
More generally
This information is already gathered and available to you by default, no
need for wheel reinventing
On Sun, 21 Feb 2021 at 10:06, esxi...@gmail.com wrote:
> Hello
>
> In below how can i skip the output when is not relevant or how to do this
> better way ?
>
> Thanks
>
> ---
> -
> hosts: temp
Hello
In below how can i skip the output when is not relevant or how to do this
better way ?
Thanks
---
-
hosts: temp
become: true
remote_user: ansible
tasks:
- name : check OS version for Ubuntu
raw : lsb_release -a
when: ansible_distribution == 'Debian' or