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

Get the desired IP through inventory plugin #2031

Open
nico-68125 opened this issue Mar 15, 2024 · 0 comments
Open

Get the desired IP through inventory plugin #2031

nico-68125 opened this issue Mar 15, 2024 · 0 comments

Comments

@nico-68125
Copy link

Actually it's possible to get the desired IP if VM has multiple interfaces like this:

 compose:
  ansible_host: >-
    guest.net
    | selectattr('ipAddress')
    | map(attribute='ipAddress')
    | flatten
    | select('match', '^192.*|^127.0.*')
    | list
    | first

The problem is when we are using Kerberos, it's not supported to authenticate with IP address.
Is there any other solution to address this issue ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant