this (/opt/openstack/current) is directory, this check(current.stat.islnk) may be not appropriate
when update package-version, /opt/openstack/current still point to old package version
Maybe this role current_symlink should be deleted from site.yml and deploying via upgrade.yml( or site.yml --extra-vars=upgrade=true) instead of site.yml when have package version change
# OPENSTACK SERVICES
# # this next play can go away after 2.1.0+ is everywhere
- name: deal with current symlink
hosts: all:!vyatta-*
any_errors_fatal: true
gather_facts: false
roles:
- role: current_symlink
tags:
- openstack
- symlink
environment: "{{ env_vars|default({}) }}"
please add description stating what is the problem this pr is addressing. This role worked fine for a long time so am curious to see what issue we trying to address.
Maybe this role
current_symlink
should be deleted from site.yml and deploying via upgrade.yml( or site.yml --extra-vars=upgrade=true) instead of site.yml when have package version change