aboutsummaryrefslogtreecommitdiffstats
path: root/installation/ansible-server/src
diff options
context:
space:
mode:
authorEnbo Wang <wangenbo@huawei.com>2019-04-10 09:25:43 +0000
committerEnbo Wang <wangenbo@huawei.com>2019-04-10 09:25:43 +0000
commit9e1fedca46f1df1059a2b7bb927d94b911f27c68 (patch)
treefa1d8a8e195e43d52c93cb536388278f8c512e18 /installation/ansible-server/src
parent67710454be20dbff2330dde919f837d850ed50ed (diff)
Update Ansible playbook for PNF software rollback
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
Diffstat (limited to 'installation/ansible-server/src')
-rw-r--r--installation/ansible-server/src/main/Playbooks/ansible_huawei_rollback@0.00.yml19
1 files changed, 3 insertions, 16 deletions
diff --git a/installation/ansible-server/src/main/Playbooks/ansible_huawei_rollback@0.00.yml b/installation/ansible-server/src/main/Playbooks/ansible_huawei_rollback@0.00.yml
index ef56c54f..0d20bc3e 100644
--- a/installation/ansible-server/src/main/Playbooks/ansible_huawei_rollback@0.00.yml
+++ b/installation/ansible-server/src/main/Playbooks/ansible_huawei_rollback@0.00.yml
@@ -1,21 +1,8 @@
---
- hosts: all
tasks:
- - name: create a temporary file for additional data
- file:
- path: /tmp/tmp-{{Id}}
- state: touch
- become: false
- - name: prepare additional data
- shell: echo {{additionalData}} > /tmp/tmp-{{Id}}
- become: false
+ - name: execute swFallback operation
+ shell: ./swm/swFallback.sh --filter {{filter}}
+ register: fallback__result
- - name: execute rollback operation
- shell: ./swm/rollback.sh {{pnfId}} {{oldSwVersion}} /tmp/tmp-{{Id}}
-
- - name: remove the temporary file
- file:
- path: /tmp/tmp-{{Id}}
- state: absent
- become: false