Giter Site home page Giter Site logo

Comments (6)

gaqzi avatar gaqzi commented on August 12, 2024

@JanMalte could you please share the command you're using? a little easier to debug from that :)

from ansible-ssh-config.

JanMalte avatar JanMalte commented on August 12, 2024
- name: add gitlab.company.de to ssh config
  ssh_config: host=gitlab.company.de
              hostname=queen.company.de
              port=2215
              remote_user=git
              identity_file=/root/.ssh/id_gitlab_deploy
              user=root
              state=present
  tags: ssh

- name: add gitlab.3rdparty to ssh config
  ssh_config: host=gitlab.3rdparty
              hostname=gitlab.3rdparty
              remote_user=git
              identity_file=/root/.ssh/id_gitlab_deploy
              strict_host_key_checking=no
              user=root
              state=present
  tags: ssh

from ansible-ssh-config.

dabrowne avatar dabrowne commented on August 12, 2024

Did you get anywhere with this? I'm currently experiencing the same issue with the below config:

- name: Add deploy keys to ssh config
  ssh_config:
    user: "{{ ansible_user }}"
    host: "{{ item.host }}"
    hostname: github.com
    identity_file: "~/.ssh/{{ item.identity_file }}"
    strict_host_key_checking: true
    state: present
  with_items:
    - host: repo1.github.com
      identity_file: repo1_deploy.github.id_rsa
    - host: repo2.github.com
      identity_file: repo2_deploy.github.id_rsa

from ansible-ssh-config.

dabrowne avatar dabrowne commented on August 12, 2024

Just found this patch on a fork from @grypyrg which solved my issue: grypyrg@dc32394

from ansible-ssh-config.

grypyrg avatar grypyrg commented on August 12, 2024

I sent a new PR #29. I thought I sent it before.

from ansible-ssh-config.

szpak avatar szpak commented on August 12, 2024

a related PR for multiple entries on the list - #30.

from ansible-ssh-config.

Related Issues (9)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.