Prefer
delegate_to: localhost
instead of local_action
34 command: CONFIGURE_OPTS='--disable-install-doc' rbenv install 2.3.1
35
36 - name: Take out of load balancer pool
37 local_action: ansible.builtin.command /usr/bin/take_out_of_pool {{ inventory_hostname }}38
39 - name: shell with jinja filter
40 shell: echo {{ "hello"|upper }}
Description
local_action
is equivalent to delegate_to: localhost
in terms of functionality, but it is not very readable, and does not match the style of typical Ansible tasks.