From 6ceb011323f60a353b20cf0ce5ba6eaf13fc75d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Fran=C3=A7ois?= <68734185+afrancois-lephare@users.noreply.github.com> Date: Thu, 3 Oct 2024 16:39:37 +0200 Subject: [PATCH] feat(adminer): switch to AdminerEvo, filename customization on v1 stack (#68) --- README.md | 1 + config/steps/adminer.yml | 15 +++++++++++---- defaults/main.yml | 1 + 3 files changed, 13 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 2ee0d30..de654c2 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/config/steps/adminer.yml b/config/steps/adminer.yml index 5f6d423..9be74d9 100644 --- a/config/steps/adminer.yml +++ b/config/steps/adminer.yml @@ -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 \ No newline at end of file diff --git a/defaults/main.yml b/defaults/main.yml index 7c7cad3..c92aa58 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -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