Skip to content

Instantly share code, notes, and snippets.

@larsks
Last active February 17, 2016 04:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save larsks/c1eefeee8f69e77c8849 to your computer and use it in GitHub Desktop.
Save larsks/c1eefeee8f69e77c8849 to your computer and use it in GitHub Desktop.
host0 ansible_host=192.168.124.247 ansible_python_interpreter=/usr/local/bin/python-wrapper ansible_user=centos
#!/bin/sh
tty > /dev/null 2>&1 && ttyflag='-t'
exec docker run -i -v /home/centos:/home/centos $ttyflag --net=none --rm centos:centos7 python "$@"
@larsks
Copy link
Author

larsks commented Feb 16, 2016

Put python-wrapper in /usr/local/bin.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment