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
https://github.com/patsevanton/packer-ansible-active-directory-yandex-cloud

```
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
```

-- 
This mailing list is governed under the HashiCorp Community Guidelines - 
https://www.hashicorp.com/community-guidelines.html. Behavior in violation of 
those guidelines may result in your removal from this mailing list.

GitHub Issues: https://github.com/hashicorp/packer/issues
IRC: #packer-tool on Freenode
--- 
You received this message because you are subscribed to the Google Groups 
"Packer" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/packer-tool/c4aee3bf-5720-420d-b109-76aecf4c597en%40googlegroups.com.

Reply via email to