I'm quite new to Ansible and have a simple question for my understanding of local_action directive.
Would that mean that the command is fully executed locally? Let's say you have something like this:
local_action: command which nginx
register: check_nginx
failed_when: no
changed_when: no
Then you have another block looking for nginx's existence with something like that:
- fail: msg="nginx unavailable"
when: check_nginx.rc == 1
Does that mean that playbook will fail in case nginx is not installed locally or will it fail if is not installed remotely ?