Skip to content

This ansible will attempt to connect to a host using predetermined usernames for select linux distros

Notifications You must be signed in to change notification settings

CyVerse-Ansible/ansible-check-ssh-connection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

CyVerse Ansible check ssh connection

This role checks for a connection and sets ansible_user to whatever was able to connect.

Requirements

This role is only made to check Ubuntu CentOS and Rocky.

Role Variables

The following table lists optional ansible variables along with the default values if not defined.

Variable Name Default value if not defined Description
SSH_TIMEOUT 30 The time given to connect to the machine in seconds.
SSH_OPTIONS None any additional options used for the ssh connection.
ansible_port 22 The port used to connect to the machine.

Example Playbook

This is a sample playbook:

- hosts: host
  roles:
    - ansible_check_ssh_connection
  vars:
    SSH_TIMEOUT: 60

Author Information

Ryan Schneider ([email protected])

About

This ansible will attempt to connect to a host using predetermined usernames for select linux distros

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published