diff options
Diffstat (limited to 'installation/ansible-server/src/main/yml/ansible_huawei_upgrade@0.00.yml')
-rw-r--r-- | installation/ansible-server/src/main/yml/ansible_huawei_upgrade@0.00.yml | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/installation/ansible-server/src/main/yml/ansible_huawei_upgrade@0.00.yml b/installation/ansible-server/src/main/yml/ansible_huawei_upgrade@0.00.yml new file mode 100644 index 00000000..ac2c4054 --- /dev/null +++ b/installation/ansible-server/src/main/yml/ansible_huawei_upgrade@0.00.yml @@ -0,0 +1,21 @@ +---
+- hosts: all
+ tasks:
+ - name: create a temporary file for additional data
+ file:
+ path: /tmp/tmp-{{Id}}
+ state: touch
+ become: true
+
+ - name: prepare additional data
+ shell: echo {{additionalData}} > /tmp/tmp-{{Id}}
+ become: true
+
+ - name: execute upgrade software operation
+ shell: ./swm/upgrade-software.sh {{pnfId}} {{oldSwVersion}} {{targetSwVersion}} /tmp/tmp-{{Id}}
+
+ - name: remove the temporary file
+ file:
+ path: /tmp/tmp-{{Id}}
+ state: absent
+ become: true
|