Skip to content

Commit

Permalink
feat(adminer): switch to AdminerEvo, filename customization
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasmirloup committed Sep 12, 2024
1 parent bb4e77a commit 1a20ee9
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 4 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,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
16 changes: 12 additions & 4 deletions config/steps/adminer.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
- 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 @@ -63,6 +63,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 1a20ee9

Please sign in to comment.