I recently upgraded to ansible 2.1 from 1.9.1 in our development
environment. I use virtualenv to install ansible 2.1 using pip. Recently
while running the playbook, I got this error:
fatal: [xxxxx-dev.com]: FAILED! => {"changed": false, "failed": true, "msg":
"unsupported parameter for module: gather_subset"}
I see that in Ansible 2.1, they have added a new capability to gather
limited facts about hosts but by default it sets gather_subset
<http://docs.ansible.com/ansible/intro_configuration.html#gathering> to
all. Thus, I have not set this value in my config file and expect it to
default to all.
This failure happened only once and the subsequent runs were successful. I
also read here that if ansible is installed separately through apt as well,
it may cause issues but since I'm using venv, I'd assume that it will be
forced to use version 2.1. Any help is appreciated.
On Thursday, June 9, 2016 at 1:36:43 PM UTC-4, Ibrahim Awwal wrote:
>
> I had the same issue with pip installed ansible. Turned out it was because
> someone else had also installed ansible through apt, and it was looking in
> /usr/share/ansible for modules, which was picking up the outdated apt
> versions. Removing the apt installed ansible fixed my issue. Reporting this
> for others who run into the same issue.
>
> On Tuesday, May 31, 2016 at 5:12:53 AM UTC-7, Dragan Milchevski wrote:
>>
>> If you checked-out ansible from github, you need to do git submodule
>> update --init --recursive.
>> I had the same problem with ansible 2.2.0 and after the submodule update
>> the problem was gone.
>>
>> Read more here: https://github.com/ansible/ansible
>>
>> On Sunday, May 29, 2016 at 5:33:47 AM UTC+2, Barry Kaplan wrote:
>>>
>>> We are trying to upgrade from 1.9 to 2.1. With no changes to so far we
>>> get:
>>>
>>> FAILED! => {"changed": false, "failed": true, "msg": "unsupported
>>> parameter for module: gather_subset"}
>>>
>>> I cannot find any use of gather_subset in our playbooks or
>>> configuration. I also cannot find any notes on this being an issue for
>>> upgrading. I see the docs for gathering (
>>> https://docs.ansible.com/ansible/intro_configuration.html#gathering),
>>> but why would a default value be invalid?
>>>
>>>
--
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/27bb2940-faec-48e5-9700-e8db6b006b91%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.