--- - hosts: localhost vars_files: - swift-vars.yml vars: remote_user: root tasks: - file: path=/srv/node owner=swift group=swift - file: path=/var/cache/swift owner=swift group=swift state=directory