[PR #7010/7496466f backport][stable-6] Update chroot.py - better documentation (#7100)

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 <akasurde@redhat.com>
(cherry picked from commit 7496466f9d)

Co-authored-by: Przemysław Sztoch <psztoch@finn.pl>
pull/7106/head
patchback[bot] 2023-08-12 19:35:47 +02:00 committed by GitHub
parent 4205a94f0c
commit e463f94ce9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -49,8 +49,10 @@ DOCUMENTATION = '''
''' '''
EXAMPLES = r""" 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] # [chroots]
# /path/to/debootstrap # /path/to/debootstrap
# /path/to/feboostrap # /path/to/feboostrap