Update Ansible playbook for PNF software rollback 38/84838/1
authorEnbo Wang <wangenbo@huawei.com>
Wed, 10 Apr 2019 09:25:43 +0000 (09:25 +0000)
committerEnbo Wang <wangenbo@huawei.com>
Wed, 10 Apr 2019 09:25:43 +0000 (09:25 +0000)
Use sub-operation swFallback from 3GPP to implement PNF software rollback.

Change-Id: I6f49755430bad673d07a52a9cb0b8973a1842ee6
Issue-ID: SDNC-671
Signed-off-by: Enbo Wang <wangenbo@huawei.com>
Former-commit-id: 26ef4861c1ca2e8aa15342f2b34f7a51936e71ab

installation/ansible-server/src/main/Playbooks/ansible_huawei_rollback@0.00.yml

index ef56c54..0d20bc3 100644 (file)
@@ -1,21 +1,8 @@
 ---\r
 - hosts: all\r
   tasks:\r
-  - name: create a temporary file for additional data\r
-    file: \r
-        path: /tmp/tmp-{{Id}}\r
-        state: touch\r
-    become: false\r
 \r
-  - name: prepare additional data\r
-    shell: echo {{additionalData}} > /tmp/tmp-{{Id}}\r
-    become: false\r
+  - name: execute swFallback operation\r
+    shell: ./swm/swFallback.sh --filter {{filter}}\r
+    register: fallback__result\r
 \r
-  - name: execute rollback operation\r
-    shell: ./swm/rollback.sh {{pnfId}} {{oldSwVersion}} /tmp/tmp-{{Id}}\r
-\r
-  - name: remove the temporary file\r
-    file:\r
-        path: /tmp/tmp-{{Id}}\r
-        state: absent\r
-    become: false\r