I am trying to create a "auto script" to run an ansible playbook in an lxc container after create --> start, but its not working out! Basically i have tried:
pct exec ${vmid} /usr/local/bin/ansible-playbook /etc/ansible/playbooks/run.yml
If i run this command in proxmox shell and specify vmid (102) it executes as expected
pct exec 102 /usr/local/bin/ansible-playbook /etc/ansible/playbooks/run.yml
I feel like i'm missing something obvious here..