<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Jul 12, 2022 at 1:07 PM Bill <<a href="mailto:keemllib@gmail.com">keemllib@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 7/11/22 20:32, James Abernathy wrote:<br>
> <br>
> TASK [common : Information used to select which roles/tasks run] *********************************************<br>
> ok: [localhost] => {<br>
> "msg": [<br>
> "Inventory Hostname: localhost",<br>
> "Distribution: Debian",<br>
> "Major Version: testing", <<<<<<<<<<<<<<<<<<<<<<<<<<<<<br>
> "Major Release: testing", <<<<<<<<<<<<<<<<<<<<<<<<<<<<<br>
> "Package Manager: apt"<br>
> ]<br>
> }<br>
<br>
'Morning,<br>
<br>
I think the above is the issue. Our Ansible playlist has tasks that look at the two<br>
"Major" lines above. Expecting an integer in the reply. "testing" errors out when<br>
the string is converted to an integer.<br>
<br>
See if this returns a major_release that isn't "testing":<br>
<br>
ansible --inventory=hosts.yml --module-name=setup --args="filter=ansible_lsb" localhost <br></blockquote><div><br></div><div> <a href="https://pastebin.com/BBgr2sg8">https://pastebin.com/BBgr2sg8</a></div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
If that also returns "testing" rather than a integer string, try the next.<br>
Rather than me guessing, can you pastebin the output of this:<br>
<br>
ansible --inventory=hosts.yml --module-name=setup localhost | egrep -v "address|ansible_ssh" > /tmp/my.setup.out<br></blockquote><div><br></div><div> <a href="https://pastebin.com/eeMkJcLQ">https://pastebin.com/eeMkJcLQ</a></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
The egrep removes SSH public keys and IP addresses, but you can edit it before pasting<br>
to see if there's anything you don't want to share. I don't see any passwords in mine.<br>
The root user is there 'cause it's used for BECOME (sudo).<br>
<br>
Thanks!<br>
<br>
--<br>
Bill<br></blockquote><div><br></div><div> Pastebin links above.</div><div><br></div><div>Jim A</div><div><br></div></div></div>