Merge "SDWAN bandwidth update DG."
[sdnc/oam.git] / installation / ansible-server / src / main / Playbooks / ansible_huawei_rollback@0.00.yml
1 ---\r
2 - hosts: all\r
3   tasks:\r
4   - name: create a temporary file for additional data\r
5     file: \r
6         path: /tmp/tmp-{{Id}}\r
7         state: touch\r
8     become: false\r
9 \r
10   - name: prepare additional data\r
11     shell: echo {{additionalData}} > /tmp/tmp-{{Id}}\r
12     become: false\r
13 \r
14   - name: execute rollback operation\r
15     shell: ./swm/rollback.sh {{pnfId}} {{oldSwVersion}} /tmp/tmp-{{Id}}\r
16 \r
17   - name: remove the temporary file\r
18     file:\r
19         path: /tmp/tmp-{{Id}}\r
20         state: absent\r
21     become: false\r