/ansible-reachable-role

Role for testing reachability of ssh ports for each host.

Build Status

reachable (2.0.0)

Role for testing reachability of remote tcp ports of ansible connections for each host.

For ssh/paramiko/smart connection, use ansible_port or 22 port, for winrm connection, use ansible_port or 5985/5986, for funcd connection, use 51234, for other local or local container connection, just skip checking.

Requirements

python modules:

  • ansible>=2.8
  • jinja2>=2.6

For ansible < 2.8, use version 1.0.1. For ansible < 2.0, use version 0.0.1.

Role Variables

No.

Dependencies

  • gzm55.require_implicity_localhost
  • gzm55.require_disabe_become
  • gzm55.local_id_plugin

Example Playbook

Including an example of how to use your role (for instance, with variables passed in as parameters) is always nice for users too:

- hosts: servers
  gather_facts: False
  roles:
     - gzm55.reachable

License

BSD