- hosts: localhost tasks: - name: Enable openssh service service: name: sshd state: started enabled: true