Browse Source

+ todo for nginx and pma configs

* pma blowfish secret generator and tmp dir fixes

#861m7vaer Шаблон операционной системы на Debian 10
master
dimti 9 months ago
parent
commit
fd2022333e
  1. 4
      playbooks/nginx-site.yml
  2. 5
      playbooks/own/phpmyadmin.yml

4
playbooks/nginx-site.yml

@ -12,8 +12,10 @@
- import_playbook: own/nginx-auth.yml - import_playbook: own/nginx-auth.yml
- import_playbook: own/phpmyadmin.yml - import_playbook: own/phpmyadmin.yml
- import_playbook: own/phpmyadmin-nginx-auth.yml - import_playbook: own/phpmyadmin-nginx-auth.yml
- import_playbook: own/correct-paths-for-pct-enter.yml
#- import_playbook: own/correct-paths-for-pct-enter.yml
# Import all other group playbooks in this file... # Import all other group playbooks in this file...
# TODO: удалить [::]: из конфигов. Определится с дефолтным конфигом. В конфиге pma.conf что-то не так с портами после получения сертификатов.
# TODO: Перенести маппинг host tld для non-www в conf.d
... ...

5
playbooks/own/phpmyadmin.yml

@ -9,6 +9,7 @@
vars: vars:
- phpmyadmin_version: 5.2.1 - phpmyadmin_version: 5.2.1
- blowfish_secret: lookup('community.general.random_string', length=12)
# Create phpmyadmin config for apache2 # Create phpmyadmin config for apache2
# TODO: Set blowfish_secret and make access rights for ./tmp directory # TODO: Set blowfish_secret and make access rights for ./tmp directory
@ -23,3 +24,7 @@
unzip -qq phpMyAdmin-{{ phpmyadmin_version }}-all-languages.zip unzip -qq phpMyAdmin-{{ phpmyadmin_version }}-all-languages.zip
rm phpMyAdmin-{{ phpmyadmin_version }}-all-languages.zip rm phpMyAdmin-{{ phpmyadmin_version }}-all-languages.zip
mv phpMyAdmin-{{ phpmyadmin_version }}-all-languages phpmyadmin mv phpMyAdmin-{{ phpmyadmin_version }}-all-languages phpmyadmin
cd phpmyadmin
cp config.sample.inc.php config.inc.php
sed -i "s|'blowfish_secret'] = ''|'blowfish_secret'] = '{{ blowfish_secret }}'|g" config.inc.php
mkdir tmp && sudo chown :33 && chmod g+w tmp
Loading…
Cancel
Save