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

Use jump server to connect to an iDrac #406

Open
dieuvolkanos opened this issue May 6, 2022 · 0 comments
Open

Use jump server to connect to an iDrac #406

dieuvolkanos opened this issue May 6, 2022 · 0 comments
Labels
area/idrac idrac modules type/question Further information is requested

Comments

@dieuvolkanos
Copy link

Question

Hi, The playbook works fine without the bastion but I'm trying to connect to a idrac using a bastion. Anyone have a solution? I tried with a variable in the inventory file and a ssh config file.

Details
- hosts: test-idrac
  connection: local
  gather_facts: False
  tasks:
    - name: Configure iDRAC network settings
      dellemc.openmanage.dellemc_get_system_inventory:
         idrac_user: "{{ idrac_user }}"
         idrac_password: "{{ idrac_password }}"
         idrac_ip: "{{ idrac_ip }}"
         validate_certs: False

Variable in the inventory file:
ansible_ssh_common_args= '-o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o ProxyCommand="ssh -W %h:%p -q bastion"'

Ssh config file:

Host bastion.*.ca
   ProxyCommand none
   User user

Host bastion
    Hostname bastion.test.ca
    ProxyCommand none
    User user
    ControlMaster auto
    ControlPath ~/.ssh/master-%r@%h:%p
    ControlPersist yes

Host *
    ProxyCommand ssh -aY bastion -F config -W %h:%p
    ForwardAgent yes
    GSSAPIAuthentication no
    VerifyHostKeyDNS no
    HashKnownHosts no
    TCPKeepAlive yes
    ServerAliveInterval 60

Error message:
"msg": "Unable to communicate with iDRAC 10.0.0.250. This may be due to one of the following: Incorrect username or password, unreachable iDRAC IP or a failure in TLS/SSL handshake."

@anupamaloke anupamaloke added type/question Further information is requested area/idrac idrac modules labels May 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/idrac idrac modules type/question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants