Skip to content

Instantly share code, notes, and snippets.

View rppf's full-sized avatar
😏
Addicted to automation.

Raymond P. Florendo rppf

😏
Addicted to automation.
  • Philippines
View GitHub Profile
@rppf
rppf / ansible-role-test.sh
Created March 27, 2018 18:27 — 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")
# - role_dir: the directory where the role exists (default = $PWD)
# - cleanup: whether to remove the Docker container (default = true)
# - container_id: the --name to set for the container (default = timestamp)