Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not fail when spawned LXC is supposed to not be in the same subnet like controlhost #8

Open
bellackn opened this issue Jun 11, 2021 · 0 comments
Labels
good first issue Good for newcomers

Comments

@bellackn
Copy link
Owner

bellackn commented Jun 11, 2021

Is your feature request related to a problem? Please describe.
When you deliberately start an LXC in a subnet that your Ansible controlhost cannot reach, the role will always fail at the "Wait until sshd of LXC '{{ item.hostname }}' is ready" task.

Describe the solution you'd like
The role should check the network interfaces that your Ansible host is in and then compare it with the address you want to assign to the container. If it's clear beforehand that you won't be able to access the host, this task should be skipped.

Describe alternatives you've considered
You could define a default variable with your IP subnet. Then compare this variable to the IP address that you assign to the LXC.

@bellackn bellackn added help wanted Extra attention is needed good first issue Good for newcomers labels Jun 11, 2021
@bellackn bellackn removed the help wanted Extra attention is needed label Oct 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant