robertdebock.test_connection

Ansible Role Test Connection

THIS ROLE HAS BEEN ARCHIVED AS OF DEC 2023.

This role checks if you can connect to your system.

GitHub GitLab Downloads Version
GitHub GitLab Downloads Version

Example Playbook

Here's an example from molecule/default/converge.yml that is tested with every update.

---
- name: Converge
  hosts: all
  gather_facts: no

  roles:
    - role: robertdebock.test_connection

Before running this, the machine needs to be set up. In CI, this setup is done using molecule/default/prepare.yml:

---
- name: Prepare
  hosts: all
  become: yes
  gather_facts: no

  roles:
    - role: robertdebock.bootstrap

For a detailed explanation and more examples, check this guide.

Role Variables

Default values for the variables are in defaults/main.yml:

---
# Defaults for test_connection

# Host to save results.
test_connection_report_host: localhost

# Directory to save results.
test_connection_report_directory: /tmp

# Connection timeout in seconds.
test_connection_timeout: 5

Requirements

State of Used Roles

The following roles help prepare the system. You can use a different method if you want.

Requirement GitHub GitLab
robertdebock.bootstrap Build Status GitHub Build Status GitLab

Context

This role works with many other related roles. For more information, check their documentation.

Here's an overview of related roles: dependencies

Compatibility

This role has been tested on these container images:

Container Tags
Alpine all
Amazon Candidate
EL 8, 9
Debian all
Fedora all
OpenSUSE all
Ubuntu all

A minimum of Ansible version 2.12 is required; tests have been done with:

  • The previous version.
  • The current version.
  • The development version.

If you encounter issues, please report them on GitHub.

License

This project is under the Apache-2.0 License.

Author Information

Created by robertdebock.

If you appreciate this work, consider supporting me.

Informazioni sul progetto

Test connection possibilities to your system.

Installa
ansible-galaxy install robertdebock.test_connection
Licenza
apache-2.0
Download
191
Proprietario
I know my way around (Linux) infrastructure, have a passion for automation, Docker, Ansible, Molecule and ci/cd.