Skip to content

Instantly share code, notes, and snippets.

View Turgon37's full-sized avatar
💭
I may be slow to respond.

Pierre GINDRAUD Turgon37

💭
I may be slow to respond.
  • France, Nancy
View GitHub Profile
#!/bin/bash
#
# Docker image tools shim.
#
# License: MIT
# Exit on any individual command failure.
set -e
##
@Turgon37
Turgon37 / ansible-role-test.sh
Last active June 9, 2018 12:30
A script to run basic tests on Ansible playbooks
#!/bin/bash
#
# Ansible role test shim.
#
# Usage: [OPTIONS] ./tests/test.sh
# - DISTRIBUTION: 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)
# - DOCKER_OPTS: specific docker options