Skip to content

Commit

Permalink
Move license check to after API is enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
brcastel committed Jul 18, 2018
1 parent d1f9e8a commit 3a89e4a
Showing 1 changed file with 15 additions and 17 deletions.
32 changes: 15 additions & 17 deletions roles/vsd-upgrade-complete/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,23 +14,6 @@

- block:

- name: Get current version of VSD software
command: echo $VSD_VERSION
register: vsd_version

- name: Print vsd_version output when verbosity >= 1
debug: var=vsd_version verbosity=1

- name: Check VSD License
check_vsd_license_validity:
vsd_auth:
"{{ vsd_auth }}"
api_version: "{{ vsd_version.stdout }}"
register: license_valid
delegate_to: localhost

- debug: var=license_valid verbosity=1

- name: Set upgrade complete flag
shell: "{{ upgrade_complete_flag_command }}"
register: result
Expand All @@ -46,4 +29,19 @@

- include: check_monit_status.yml

- name: Get current version of VSD software
command: echo $VSD_VERSION
register: vsd_version

- name: Print vsd_version output when verbosity >= 1
debug: var=vsd_version verbosity=1

- name: Check VSD License
check_vsd_license_validity:
vsd_auth:
"{{ vsd_auth }}"
api_version: "{{ vsd_version.stdout }}"
register: license_valid
delegate_to: localhost

remote_user: "{{ vsd_username }}"

0 comments on commit 3a89e4a

Please sign in to comment.