--- - name: execute command hosts: all become: true gather_facts: false roles: - role: node/execute_command vars: command: "{{ command }}" # ansible-playbook playbooks/node/execute_command.yml -i inventory.ini