Skip to content
This repository was archived by the owner on Oct 8, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion docs/roles/composer.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,13 @@ composer:
# 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')
# create: whether to create the target if it does not exists.
# 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.
Expand Down
4 changes: 3 additions & 1 deletion docs/roles/config_generate.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,13 @@ config_generate:
# 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')
# create: whether to create the target if it does not exists.
# 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.
Expand Down
4 changes: 3 additions & 1 deletion docs/roles/deploy_code.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,11 +89,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')
# create: whether to create the target if it does not exists.
# 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.
Expand Down
4 changes: 3 additions & 1 deletion docs/roles/npm.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,13 @@ npm:
# 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')
# create: whether to create the target if it does not exists.
# 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.
Expand Down
4 changes: 3 additions & 1 deletion roles/composer/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,13 @@ composer:
# 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')
# create: whether to create the target if it does not exists.
# 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.
Expand Down
4 changes: 3 additions & 1 deletion roles/composer/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,13 @@ composer:
# 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')
# create: whether to create the target if it does not exists.
# 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.
Expand Down
1 change: 1 addition & 0 deletions roles/composer/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
src: "{{ link.src }}"
dest: "{{ deploy_path }}/{{ link.dest }}"
state: link
force: "{{ link.force | default(false) }}"
with_items: "{{ composer.symlinks }}"
loop_control:
loop_var: link
Expand Down
4 changes: 3 additions & 1 deletion roles/config_generate/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,13 @@ config_generate:
# 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')
# create: whether to create the target if it does not exists.
# 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.
Expand Down
4 changes: 3 additions & 1 deletion roles/config_generate/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,13 @@ config_generate:
# 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')
# create: whether to create the target if it does not exists.
# 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.
Expand Down
1 change: 1 addition & 0 deletions roles/config_generate/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
src: "{{ link.src }}"
dest: "{{ deploy_path }}/{{ link.dest }}"
state: link
force: "{{ link.force | default(false) }}"
with_items: "{{ config_generate.symlinks }}"
loop_control:
loop_var: link
Expand Down
4 changes: 3 additions & 1 deletion roles/deploy_code/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,11 +89,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')
# create: whether to create the target if it does not exists.
# 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.
Expand Down
4 changes: 3 additions & 1 deletion roles/deploy_code/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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')
# create: whether to create the target if it does not exists.
# 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.
Expand Down
3 changes: 2 additions & 1 deletion roles/deploy_code/tasks/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,12 @@
- deploy_code.templates | length
- deploy_operation == 'deploy'

- name: Create additional symlinks.
- name: Create additional symlinks in build dir.
ansible.builtin.file:
src: "{{ link.src }}"
dest: "{{ deploy_path }}/{{ link.dest }}"
state: link
force: "{{ link.force | default(false) }}"
with_items: "{{ deploy_code.symlinks }}"
loop_control:
loop_var: link
Expand Down
4 changes: 3 additions & 1 deletion roles/live_symlink/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,13 @@ live_symlink:
# 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')
# create: whether to create the target if it does not exists.
# 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.
Expand Down
2 changes: 1 addition & 1 deletion roles/live_symlink/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
dest: "{{ deploy_path }}/{{ link.dest }}"
state: link
follow: false
force: true
force: "{{ link.force | default(true) }}"
with_items: "{{ live_symlink.symlinks }}"
loop_control:
loop_var: link
Expand Down
4 changes: 3 additions & 1 deletion roles/npm/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,13 @@ npm:
# 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')
# create: whether to create the target if it does not exists.
# 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.
Expand Down
4 changes: 3 additions & 1 deletion roles/npm/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,13 @@ npm:
# 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')
# create: whether to create the target if it does not exists.
# 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.
Expand Down
1 change: 1 addition & 0 deletions roles/npm/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
src: "{{ link.src }}"
dest: "{{ deploy_path }}/{{ link.dest }}"
state: link
force: "{{ link.force | default(false) }}"
with_items: "{{ npm.symlinks }}"
loop_control:
loop_var: link
Expand Down