On Friday, January 16, 2015 at 4:09:32 PM UTC-5, Dimitri Yioulos wrote: > > All, > > I'm a newbie who's trying to get Ansible to work on a Windows Server > client. I followed instructions found here: > http://docs.ansible.com/intro_windows.html, and both the Linux-based > Ansible control server and Windows client seem to be set up properly. I > originally ran this example playbook (from > http://docs.ansible.com/win_feature_module.html): > > # Playbook example > --- > - name: Install IIS > hosts: all > gather_facts: false > tasks: > - name: Install IIS > win_feature: > name: "Web-Server" > state: absent > restart: yes > include_sub_features: yes > include_management_tools: yes > > Interestingly, it appeared to *uninstall* IIS. I'm guessing it's because of > the line "state: absent" (but I'm a newbie, so what do I know). So, then I > decided to change "absent" to "present", and started to get this error: > > Vault password: > sawintest01 | FAILED >> { > "failed": true, > "msg": "A parameter cannot be found that matches parameter name > 'IncludeManagementTools'." > } > > OK, so I removed the line "IncludeManagementTools". Now, every time I run > the playbook, I get the same error. And, if I create a new playbook to > install, say SNMP, the same error is still generated, despite the fact that > the line "IncludeManagementTools" isn't in the playbook (or any playbooks, > at this point). Huh? Why does Ansible keep whining about a parameter that > I'm not even including? What am I doing wrong here? > > Help would be most gratefully appreciated. > > Dimitri >
Thanks, Jon. I have used -vvvv to get as much debugging information as possible, and I presented it in my op. Only one instance of my playbook exists, and it doesn't include the parameter 'IncludeManagementTools', though that was in the example playbook that I used from Puppet documentation. It's like the original is cached somewhere and, if it is, I don't know where that somewhere is. As I mentioned, if I use the parameter "state: absent", the playbook works to uninstall the service if it's installed. But it fails if I use the parameter "state: present". Yeesh. Dimitri -- 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/138ab756-4b87-4bf6-9710-5c25e1b3595f%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
