Giter Club home page Giter Club logo

ansible-sshjuggle's Introduction

ansible-sshjuggle

Latest Version

Ansible collection that comes with a role for finding a working set of ssh connection parameters amongst multiple specified parameters.

Roles

sshjuggle

This role finds a working set of ssh parameters by trying out Ansible's regular ssh parameters and the parameters specified in this role's variables.

sshjuggle tests all possible combinations of the connection parameters in parallel, and the role proceeds with updating the connection parameters to the working ones as soon as a working set of parameters are found.

Since Ansible tries to connect to the host and gather facts before any roles are applied, Ansible's gathering option should be set to explicit.

This role will trigger fact gathering after setting the connection parameters, a behaviour that can be controlled by the sshjuggle_gather_facts variable.

Variable Default Description
sshjuggle_ports [ 22 ] Ports to try in addition to the default port parameter.
sshjuggle_hosts [] Hosts to try in addition to the default host parameter.
sshjuggle_users [] Users to try in addition to the default user parameter.
sshjuggle_passwords [] Passwords to try in addition to the default password parameter.
sshjuggle_private_key_files [] Private key files to try in addition to the default private key file parameter.
sshjuggle_gather_facts true Whether to trigger Ansible's fact gathering at the end of the role.
sshjuggle_fail true Whether to fail if sshjuggle fails to connect to the host.
sshjuggle_max_jobs 100 Maximum number of simultaneous jobs to use for testing out parameters. Set to a lower number if your system is hitting the process count limit.

Usage

Example requirements.yml file:

collections:
  - name: https://github.com/koonix/ansible-sshjuggle
    type: git
    version: 0.1.7

Example usage in a playbook:

- name: Roles
  hosts: all
  roles:
    - { role: koonix.sshjuggle.sshjuggle, tags: always }
    - ...

ansible-sshjuggle's People

Contributors

koonix avatar

Watchers

 avatar

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.