--- - hosts: all vars: ansible_host_key_checking: false ##If you get an error about hosts not trusted become: true tasks: - name: debug debug: messages: "Task ok"