1 2 3 4 5 6 7 8 9 10 11
--- - hosts: raspbian-template pre_tasks: - name: Detect chroot set_fact: chroot: "{{ ansible_connection == 'chroot' or 'container' in ansible_env }}" tags: always roles: - raspbian-template # vim: set ts=2 sw=2 et: