aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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