aboutsummaryrefslogtreecommitdiffstats
path: root/installation/ansible-server/src/main/Playbooks/ansible_huawei_postcheck@0.00.yml
blob: 0711e40ad6fc40853f41f3939142de3e6d452e64 (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 post-check operation
    shell: ./swm/upgrade-post-check.sh {{pnfId}} {{oldSwVersion}} {{targetSwVersion}} {{ruleName}} /tmp/tmp-{{Id}}

  - name: remove the temporary file
    file:
        path: /tmp/tmp-{{Id}}
        state: absent
    become: false