X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=installation%2Fansible-server%2Fsrc%2Fmain%2FPlaybooks%2Fansible_huawei_rollback%400.00.yml;h=0d20bc3ed2f1fb7e74c1426bc2883c55e6280329;hb=9e1fedca46f1df1059a2b7bb927d94b911f27c68;hp=ef56c54fc864c140db17fd1ffc7800a3dd5083f5;hpb=67710454be20dbff2330dde919f837d850ed50ed;p=sdnc%2Foam.git 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