--- - name: password user: name: root password: "{{ root_password }}" when: - root_password is defined - not root_target_directory is defined