--- - name: Prepare and configure user "scores" hosts: all tasks: - name: Adding authorized key to scores user authorized_key: user=scores key="{{item}}" with_file: - ../files/authorized_keys.deploy.pub