Running Ansible v1.9.1 under MacOSX 10.10.3 Trying to use Ansible to configure Windows Server 2008 and am having some basic problem. The server is running on Amazon AWS. I've got all the connection stuff working fine. This (mostly empty) Ansible playbook runs fine:
--- # Buildit.yml - name: Configure The Server hosts: '{{ machine }}' remote_user: Administrator gather_facts: True vars: workdirectory: 'C:\funstuff' logdirectory: 'C:\Windows\System32\winevt\Logs' tasks: $ ansible-playbook -v -i ../windows_servers BuildIt.yml --e "machine=winserv" PLAY [Configure The Server] *************************************************** GATHERING FACTS *************************************************************** ok: [52.8.8.11] => {"ansible_facts": {"ansible_distribution": "Microsoft Windows NT 6.3.9600.0", "ansible_distribution_version": "6.3.9600.0", "ansible_fqdn": "WIN-Q6VQ4JB2KCU", "ansible_hostname": "WIN-Q6VQ4JB2KCU", "ansible_interfaces": [{"default_gateway": "172.31.16.1", "dns_domain": "us-east-1.compute.internal", "interface_index": 12, "interface_name": "AWS PV Network Device #0"}], "ansible_ip_addresses": ["172.3.4.18", "fe80::8a9:7fe:537:75e"], "ansible_os_family": "Windows", "ansible_powershell_version": 4, "ansible_system": "Win32NT", "ansible_totalmem": 8053063680, "ansible_winrm_certificate_expires": "2016-06-09 16:18:39"}, "changed": false} PLAY RECAP ******************************************************************** 52.8.8.11 : ok=1 changed=0 unreachable=0 failed=0 But if I add one task, it fails: --- # Buildit.yml - name: Configure The Server hosts: '{{ machine }}' remote_user: Administrator gather_facts: True vars: workdirectory: 'C:\funstuff' logdirectory: 'C:\Windows\System32\winevt\Logs' tasks: - name: make sure work directory exists win_file: path=C:\funstuff state=directory $ ansible-playbook -v -i ../windows_servers BuildIt.yml --e "machine=winserv" ERROR: win_file is not a legal parameter in an Ansible task or handler $ Why am I getting this error? -- 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 ansible-project+unsubscr...@googlegroups.com. To post to this group, send email to ansible-project@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/b6ff652c-49d4-42cd-83af-87f2aea55f19%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.