Coder Social home page Coder Social logo

ansible-role-ssh_keys's Introduction

SSH Keys

This role configures all hosts in the current play to allow password-free (pubkey based) SSH authentication amongst themselves.

Requirements

Ansible 2.8 or higher OpenSSH software present.

Role Variables

Available variables can be found in vars.

Key variables are:

  • ssh_keys_keypair_name - Name of keypair. This file should NOT be the current user's normal private key, unless that key is not considered a secure secret.
  • ssh_keys_keypair_owner - SSH client user
  • ssh_keys_authorized_keys_owner - SSH server user

Dependencies

None

Example Playbook

Example for Production:

- hosts: all
  roles:
    - role: eusebium.ssh_keys
      ssh_keys_keypair_name: id_rsa_pgpool
      ssh_keys_keypair_owner: postgres
      ssh_keys_authorized_keys_owner: postgres

Example for test/dev:

- hosts: all
  roles:
    - role: eusebium.ssh_keys
      ssh_keys_keypair_name: id_test_{{ ssh_keys_keypair_type }}
      ssh_keys_generate_on_controller: true
      ssh_keys_keypair_owner: vagrant
      ssh_keys_authorized_keys_owner: vagrant
      ssh_keys_keypair_comment: 'vagrant_test_key'

License

MIT

Author Information

Sebi C. [email protected]

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.