aboutsummaryrefslogtreecommitdiffstats
path: root/tutorials/vFWDT/playbooks/vfw-sink/latest/ansible/upgradepostcheck/site.yml
blob: 13e5be978969d995bb27cea5de23a474f7f39e1d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
---
- hosts: vFWDT
  gather_facts: no
  remote_user: ubuntu
  tasks:
  - debug: var="new_software_version"
    failed_when: new_software_version is not defined
  - debug: var="existing_software_version"
    failed_when: existing_software_version is not defined
  - name: Read OLD Software Version
    shell: cat /opt/config/version.txt
    register: old_version
    become: true
  - debug: var=old_version.stdout
    failed_when: old_version.stdout != new_software_version