diff --git a/plugins/connection/chroot.py b/plugins/connection/chroot.py index ef6d5566d3..0b171c118b 100644 --- a/plugins/connection/chroot.py +++ b/plugins/connection/chroot.py @@ -48,6 +48,25 @@ DOCUMENTATION = ''' default: chroot ''' +EXAMPLES = r""" +# Static inventory file +# +# [chroots] +# /path/to/debootstrap +# /path/to/feboostrap +# /path/to/lxc-image +# /path/to/chroot + +# playbook +--- +- hosts: chroots + connection: community.general.chroot + tasks: + - debug: + msg: "This is coming from chroot environment" + +""" + import os import os.path import subprocess