From 9e1fedca46f1df1059a2b7bb927d94b911f27c68 Mon Sep 17 00:00:00 2001 From: Enbo Wang Date: Wed, 10 Apr 2019 09:25:43 +0000 Subject: 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 Former-commit-id: 26ef4861c1ca2e8aa15342f2b34f7a51936e71ab --- .../main/Playbooks/ansible_huawei_rollback@0.00.yml | 19 +++---------------- 1 file changed, 3 insertions(+), 16 deletions(-) (limited to 'installation/ansible-server/src/main/Playbooks') 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 -- cgit 1.2.3-korg