diff --git a/roles/deploy_code/defaults/main.yml b/roles/deploy_code/defaults/main.yml index b28b479d..62e50b00 100644 --- a/roles/deploy_code/defaults/main.yml +++ b/roles/deploy_code/defaults/main.yml @@ -11,11 +11,13 @@ deploy_code: # Specify any additional symlink to create, with src (target) and dest (link). # src: can be either absolute or relative to the dest (eg. '/var/my_data', '/home/deploy/simplesaml', '../../../myconfig') # dest: can only be relative to the root of your repository (eg. 'www/themes/myassets', 'var/cache') - # force: false # Set to true for the creation of the symlinks in two cases: the source file does not exist but will appear later; the destination exists and is a file. + # force: set to true to create the symlinks in two cases: the source file does not exist but will appear later; the destination exists and is a file. # - src: '/home/{{ deploy_user }}//{{ project_name }}_{{ build_type }}/simplesaml' # dest: 'vendor/simplesamlphp/simplesamlphp/config' + # force: true # - src: '/var/simplesaml/etc' # dest: 'vendor/simplesamlphp/simplesamlphp/config' + # force: false symlinks: [] # Specify any additional templates to generate, with src (template) and dest (file). # src: name of a template, in the "templates" dir relative to your playbook. diff --git a/roles/deploy_code/tasks/deploy.yml b/roles/deploy_code/tasks/deploy.yml index 307a480c..ef38f63a 100644 --- a/roles/deploy_code/tasks/deploy.yml +++ b/roles/deploy_code/tasks/deploy.yml @@ -45,6 +45,7 @@ src: "{{ link.src }}" dest: "{{ live_symlink_dest }}/{{ link.dest }}" state: link + force: "{{ link.force }}" with_items: "{{ deploy_code.symlinks }}" loop_control: loop_var: link