Я нашел два подхода к проверке того, применяется ли книга пьес через ansible-pull --extra-vars "ansible_pull=true"
:
ansible_connection == "local"
. However this doesnt work in all places as local connections might also used regularily by your playbook.ansible-pull