Hello,
I try to run a playbook to connect to a windows server with host external
parameters set this way:
In my *inventory file*, I only want to set these parameter: ansible_host
and ansible_user
[windows]
ansible_host=server.fr.test ansible_user=ansible
all parameters about connection are in the *playbook/group_vars/windows.yml
*file this way:
*ansible_vault_password_file: ~/host_vars/ansible.yml*
ansible_connection: winrm
ansible_port: 5986
ansible_winrm_server_cert_validation: ignore
I had the ansible_vault_password_file , so I hope when running the
playbook, the password file will be found in the
*playbook/host_vars/ansible.yml
*encrypted file.
But I receive the following error:
fatal: [test1]: UNREACHABLE! => {"changed": false, "msg": "ssl: auth method
ssl requires a password", "unreachable": true}
if I set the password in the inventory file, the connection is ok.
Where am I wrong ?
Regards
--
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/546514de-9ba5-4109-a356-0a3015656308%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.