-- name: fetch files from server which contains the necessary variables
- fetch:
- src: /etc/swift/usr/admin/admin.yml
- dest: /tmp/
- flat: yes
-
-- name: register infos for swift_auth
- set_fact:
- swift_credential: "{{ lookup('file', '/tmp/admin.yml') | from_yaml }}"
-