blob: 651974f817cee322cf18ec424861f5ee7d5a900a (
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: true
- name: prepare additional data
shell: echo {{additionalData}} > /tmp/tmp-{{Id}}
become: true
- name: execute pre-check operation
shell: ./swm/upgrade-pre-check.sh {{pnfId}} {{oldSwVersion}} {{targetSwVersion}} {{ruleName}} /tmp/tmp-{{Id}}
- name: remove the temporary file
file:
path: /tmp/tmp-{{Id}}
state: absent
become: true
|