Need to enter chroot on remote host

Hello,

some servers i like to manage have a chroot. There I have to run:
chroot /home/system/chroot
to switch in. There i have to install packages with APT, store configurations, etc.

Is there a chance to do that with ansible?

https://docs.ansible.com/ansible/latest/collections/community/general/chroot_connection.html

Hello Dick,

thank you for the link!
I think i’m too much beginner - i do not know how to use it :frowning:
Do you have an example for the plugin?

anyone out there who can help me out?