Hi. Thanks for packer!
I try run ansible playbook when build windows by packer.
I use yandex cloud.
Use latest version of ansible, packer and packer-plugin-yandex.
Source code
```
sudo apt update
sudo apt install git jq python3-pip -y
sudo pip3 install ansible pywinrm
ansible-galaxy collection install ansible.windows
ansible-galaxy install justin_p.pdc
```
Run ConfigureRemotingForAnsible.ps1 on Windows when build
packer build windows-ansible.json
Log
```
==> yandex: Provisioning with Ansible...
yandex: Not using Proxy adapter for Ansible run:
yandex: Using WinRM Password from Packer communicator...
==> yandex: Executing Ansible: ansible-playbook -e packer_build_name="yandex" -e packer_builder_type=yandex --tags install --extra-vars ansible_port=5986 ansible_connection=winrm ansible_winrm_transport=basic ansible_user=Administrator ansible_password=***** ansible_winrm_server_cert_validation=ignore -e ansible_password=***** -i /tmp/packer-provisioner-ansible173654079 /home/apatsev/packer-ansible-active-directory-yandex-cloud/ansible/packer_active_directory.yml
yandex:
yandex: PLAY [all] *********************************************************************
yandex:
yandex: TASK [Gathering Facts] *********************************************************
yandex: ok: [default]
yandex:
yandex: PLAY RECAP *********************************************************************
yandex: default : ok=1 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
yandex:
==> yandex: Restarting Machine
```