tasks: horizon_post_install: Add 'force' parameter when creating symlink

A local_settings.py may already exist as a regular file so in that case
we need to use the 'force' parameter to force the symlink creation.

Change-Id: I05eb9026707639aa12ea1c3ae93b872191528069
This commit is contained in:
Markos Chandras 2018-07-20 12:09:41 +01:00
parent 8d5aec9df4
commit a37d0af9ca

View File

@ -56,6 +56,7 @@
owner: "{{ horizon_system_user_name }}" owner: "{{ horizon_system_user_name }}"
group: "{{ horizon_system_group_name }}" group: "{{ horizon_system_group_name }}"
state: "link" state: "link"
force: yes
with_items: with_items:
- { src: "/etc/horizon/local_settings.py", dest: "{{ horizon_lib_dir }}/openstack_dashboard/local/local_settings.py" } - { src: "/etc/horizon/local_settings.py", dest: "{{ horizon_lib_dir }}/openstack_dashboard/local/local_settings.py" }