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