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 ansible_dis
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
>
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 sp
Your dest should have 2 backslashes at the start, right now it's being
treated as a local path. Even with a UNC path you are most likely going to
hit the double hop problem with delegating your credentials. Make sure you
use Kerberos with credential delegation, CredSSP, or use become on the tas
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 to
Hello
Is there any way to target only primary OS related packages ?
- name: Update all packages to their latest version
apt:
name: "*"
state: latest
At times 3rd Party packages are added to /etc/apt/sources.list
So what is best way to just patch the OS & not the app..
Any suggestions to
I am thinking like below
cat /etc/apt/sources.list |grep -v "#"
deb http://us.archive.ubuntu.com/ubuntu/ bionic main restricted
deb http://us.archive.ubuntu.com/ubuntu/ bionic-updates main restricted
deb http://us.archive.ubuntu.com/ubuntu/ bionic universe
deb http://us.archive.ubuntu.com/ub