blob: ef56c54fc864c140db17fd1ffc7800a3dd5083f5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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
|