Interestingly, my ubuntu laptop also responds with just "Linux" to the
platform.system() call.
Unfortunately, it appears that I cannot get CentOS 7.1 yet on AWS...I think
Gregswift mentioned that worked for him today. I could test it next week at
work with a physical install to identify the issue further, if that's
helpful.
On Friday, November 13, 2015 at 3:10:19 PM UTC-6, Joanna Delaporte wrote:
>
> HI Brian,
>
> Thanks! Both hosts had the same responses. Here's the result:
>
> >>> print(platform.system())
> Linux
> >>> print(platform.linux_distribution())
> ('CentOS Linux', '7.0.1406', 'Core')
> >>> print(platform.dist())
> ('centos', '7.0.1406', 'Core')
>
> So, if the module is first looking at platform.system and taking any
> answer it receives, the only answer the module receives from this
> distribution version is "Linux".
>
> On Friday, November 13, 2015 at 1:41:24 PM UTC-6, Brian Coca wrote:
>>
>> the 'magic' gets done in the load_platform_subclass, which matches the
>> platform name to a class of the same name + Hostname, which then sets
>> the strategy class, which actually implements the way of updating
>> hostname.
>>
>> to figure out platform name it uses platform.system() built in from
>> python. can you do test the output of this in your instance? also
>> platform.linux_distribution() and platform.dist() which might be used
>> as fallbacks.
>>
>> --
>> Brian Coca
>>
>
--
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/4917302f-ae93-4710-95ec-5879137436e9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.