Skip to content

Instantly share code, notes, and snippets.

View davestephens's full-sized avatar
💾
Where's the 5 1/4 inch emoji?

David Stephens davestephens

💾
Where's the 5 1/4 inch emoji?
View GitHub Profile
@davestephens
davestephens / ansible-role-test.sh
Last active September 17, 2017 20:53 — forked from geerlingguy/ansible-role-test.sh
Ansible Role Test Shim Script
#!/bin/bash
#
# Ansible role test shim.
#
# 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)
# - test_idempotence: whether to test playbook's idempotence (default = true)