X-Git-Url: https://gerrit.akraino.org/r/gitweb?p=ta%2Fcaas-lcm.git;a=blobdiff_plain;f=deploy%2Froles%2Fclean_chart%2Ftasks%2Fmain.yml;fp=deploy%2Froles%2Fclean_chart%2Ftasks%2Fmain.yml;h=30ff184b348b183d56af23c145043c235e75d899;hp=1b1afb7b77cfac50e47309cf9c0e0b94348d8475;hb=8b3b4884ab72e5b86b8850872bf50c6a067c001b;hpb=8c28c9164fab719dcd49ccea8878e66bfe69b88c diff --git a/deploy/roles/clean_chart/tasks/main.yml b/deploy/roles/clean_chart/tasks/main.yml index 1b1afb7..30ff184 100644 --- a/deploy/roles/clean_chart/tasks/main.yml +++ b/deploy/roles/clean_chart/tasks/main.yml @@ -13,21 +13,12 @@ # 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