Skip to content

Instantly share code, notes, and snippets.

View uZer's full-sized avatar
🛰️
Taming patch cables

Youenn Piolet uZer

🛰️
Taming patch cables
View GitHub Profile
@uZer
uZer / ansible-role-test.sh
Last active May 29, 2017 22:41 — forked from geerlingguy/ansible-role-test.sh
Ansible Role Test Shim Script
#!/bin/bash
#
# Ansible role test shim.
# Fork from geerlingguy's
#
# Usage: [OPTIONS] ./tests/test.sh
# - distro: a supported Docker distro version (default = "centos7")
# - playbook: a playbook in the tests directory (default = "test.yml")
# - cleanup: whether to remove the Docker container (default = true)
# - container_id: the --name to set for the container (default = timestamp)