diff --git a/tasks/keystone_install.yml b/tasks/keystone_install.yml index 1c6254dc..f6a323fb 100644 --- a/tasks/keystone_install.yml +++ b/tasks/keystone_install.yml @@ -204,16 +204,14 @@ path: "{{ keystone_bin | dirname }}" state: directory register: keystone_venv_dir - when: not keystone_developer_mode | bool + when: keystone_get_venv | changed - name: Unarchive pre-built venv unarchive: src: "/var/cache/{{ keystone_venv_download_url | basename }}" dest: "{{ keystone_bin | dirname }}" copy: "no" - when: - - not keystone_developer_mode | bool - - keystone_get_venv | changed + when: keystone_get_venv | changed notify: - Restart Keystone APIs on first node - Restart Keystone APIs on other nodes @@ -234,7 +232,7 @@ until: install_packages|success retries: 5 delay: 2 - when: keystone_get_venv | failed or keystone_get_venv | skipped or keystone_developer_mode | bool + when: keystone_get_venv | failed or keystone_get_venv | skipped notify: - Restart Keystone APIs on first node - Restart Keystone APIs on other nodes @@ -247,12 +245,9 @@ state: "absent" when: - ansible_pkg_mgr == 'yum' - - not keystone_developer_mode | bool - keystone_get_venv | changed - name: Update virtualenv path command: > virtualenv-tools --update-path=auto --reinitialize {{ keystone_bin | dirname }} - when: - - not keystone_developer_mode | bool - - keystone_get_venv | changed + when: keystone_get_venv | changed