From 7496466f9d2c5709618bc856f00a3b8eb74387de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Przemys=C5=82aw=20Sztoch?= Date: Sat, 12 Aug 2023 18:03:56 +0200 Subject: [PATCH] Update chroot.py - better documentation (#7010) * Update chroot.py Better informations about sudo and env. * Update plugins/connection/chroot.py --------- Co-authored-by: Abhijeet Kasurde --- plugins/connection/chroot.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/connection/chroot.py b/plugins/connection/chroot.py index 0b171c118b..7903ab7046 100644 --- a/plugins/connection/chroot.py +++ b/plugins/connection/chroot.py @@ -49,8 +49,10 @@ DOCUMENTATION = ''' ''' EXAMPLES = r""" -# Static inventory file +# Plugin requires root privileges for chroot, -E preserves your env (and location of ~/.ansible): +# sudo -E ansible-playbook ... # +# Static inventory file # [chroots] # /path/to/debootstrap # /path/to/feboostrap