Move swift authentication data to cm
[ta/caas-lcm.git] / deploy / roles / clean_chart / tasks / main.yml
index 1b1afb7..30ff184 100644 (file)
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
-- name: fetch files from server which contains the necessary variables
-  fetch: src={{ item }} dest=/tmp/ flat=yes
-  with_items:
-    - /etc/swift/usr/admin/admin.yml
-
-- name: register infos for swift_auth
-  set_fact:
-    swift_credential: "{{ lookup('file', swift_admin_path + '/admin.yml') | from_yaml }}"
-
 - name: authenticate on swift
   uri:
     url: "{{ caas.swift }}/auth/v1.0"
     headers:
       X_Auth_User: admin:admin
-      X_Auth_Key: "{{ swift_credential.swift_password }}"
+      X_Auth_Key: "{{ caas.swift_credential.password }}"
   register: auth
 
 - name: clean charts list file if exists