Skip to content

Commit

Permalink
feat(adminer): switch to AdminerEvo, filename customization on v1 sta…
Browse files Browse the repository at this point in the history
…ck (#68)
  • Loading branch information
afrancois-lephare authored Oct 3, 2024
1 parent 71ec067 commit 6ceb011
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
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
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

0 comments on commit 6ceb011

Please sign in to comment.