Skip to content

Instantly share code, notes, and snippets.

View huyong1979's full-sized avatar

Yong HU huyong1979

  • Brookhaven National Lab
  • Upton, New York, U.S.A
View GitHub Profile
@huyong1979
huyong1979 / ansible-localhost.md
Last active April 5, 2025 12:40 — forked from ryantuck/ansible-localhost.md
super fast way to start testing ansible stuff locally without VMs

set up ansible to work on localhost

i've found this useful for debugging ansible modules and syntax without having to use VMs or test in dev environments.

install ansible

pip install ansible

make some relevant config files

#!/bin/bash
# This script takes a remote repository and merges it into
# the current one as a subdirectory
set -e
if [ -z "$1" ]
then
echo "Usage:"