Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(adminer): switch to AdminerEvo, filename customization on v1 stack #68

Merged
merged 2 commits into from
Oct 3, 2024
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
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ The defaults vars declared in this module:
lephare_cloudfront_path: [ '/*' ]

lephare_install_adminer: false
lephare_install_adminer_filename: "adminer.php"
lephare_install_adminer_path: "{{ lephare_document_root_path }}"

lephare_permission_set: false
Expand Down
15 changes: 11 additions & 4 deletions config/steps/adminer.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
- name: LEPHARE - install latest Adminer
pierreboissinot marked this conversation as resolved.
Show resolved Hide resolved
get_url:
url: https://www.adminer.org/latest.php
dest: "{{ lephare_install_adminer_path }}/adminer.php"
- name: LEPHARE - install latest AdminerEvo
unarchive:
src: https://download.adminerevo.org/latest/adminer/adminer-fr.zip
dest: "{{ lephare_install_adminer_path }}"
remote_src: yes
ignore_errors: True
- name: LEPHARE - rename AdminerEvo file
command: mv "{{ lephare_install_adminer_path }}/adminer-fr.php" "{{ lephare_install_adminer_path }}/{{lephare_install_adminer_filename}}"
args:
removes: "{{ lephare_install_adminer_path }}/adminer-fr.php"
creates: "{{ lephare_install_adminer_path }}/{{lephare_install_adminer_filename}}"
ignore_errors: True
1 change: 1 addition & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ lephare_cloudfront_invalidate: false
lephare_cloudfront_path: ["/*"]

lephare_install_adminer: false
lephare_install_adminer_filename: "adminer.php"
lephare_install_adminer_path: "{{ lephare_document_root_path }}"

lephare_permission_set: false
Expand Down