From: Dan Timoney Date: Fri, 29 Mar 2019 12:58:53 +0000 (+0000) Subject: Merge "Add Ansible playbook for PNF software rollback" X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=8099c4a748356dd67a3fddddc340950439575ad8;hp=7573a1d8192032c8a7af0e8e61f359e5b22b2fc4;p=sdnc%2Foam.git Merge "Add Ansible playbook for PNF software rollback" --- 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