From: Dan Timoney Date: Fri, 29 Mar 2019 12:58:53 +0000 (+0000) Subject: Merge "Add Ansible playbook for PNF software rollback" X-Git-Tag: 1.5.1~64 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=d6346ad42dca37c99773040d88b19227d80a26a6;hp=6dd642bbc3a378c15c7e74f2e1fd8cf9722e4b55;p=sdnc%2Foam.git Merge "Add Ansible playbook for PNF software rollback" Former-commit-id: 8099c4a748356dd67a3fddddc340950439575ad8 --- 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 new file mode 100644 index 00000000..ef56c54f --- /dev/null +++ b/installation/ansible-server/src/main/Playbooks/ansible_huawei_rollback@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: false + + - name: prepare additional data + shell: echo {{additionalData}} > /tmp/tmp-{{Id}} + become: false + + - 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