I am creating Ansible playbooks to try to automate everything as much as possible.
I have my made my own proxmox_lxc role that works perfectly, using the CT templates that are available out of the box.
The thing is: after starting the container I cannot ssh into it from the outside world, which makes it unable to start another playbook to set up what I want to have in the container.
The required steps are documented in this forum post: https://forum.proxmox.com/threads/cannot-ssh-to-new-container.38114/
It works perfect when I do this manually, but I want to have it done through automation. I feel like having a kind of chicken egg problem.
The only solution I can think of is making my own container template having ssh enabled. But that would be bit of a bummer, because I want to avoid manual intervention as much as possible.
Any suggestions?
I have my made my own proxmox_lxc role that works perfectly, using the CT templates that are available out of the box.
The thing is: after starting the container I cannot ssh into it from the outside world, which makes it unable to start another playbook to set up what I want to have in the container.
The required steps are documented in this forum post: https://forum.proxmox.com/threads/cannot-ssh-to-new-container.38114/
It works perfect when I do this manually, but I want to have it done through automation. I feel like having a kind of chicken egg problem.
The only solution I can think of is making my own container template having ssh enabled. But that would be bit of a bummer, because I want to avoid manual intervention as much as possible.
Any suggestions?