debloat web apps+pma and var for ssl

This commit is contained in:
lulzette 2021-02-27 15:17:49 +03:00
parent dd939856e3
commit e731e8a865
4 changed files with 18 additions and 13 deletions

View File

@ -2,6 +2,7 @@
become: true become: true
vars: vars:
domain: zz777.ru domain: zz777.ru
ssl: false
roles: roles:
- nginx - nginx
- php - php

View File

@ -6,4 +6,5 @@
- include_tasks: configure.yml - include_tasks: configure.yml
- include_tasks: certbot.yml - include_tasks: certbot.yml
when: ssl

View File

@ -4,15 +4,4 @@
name: unzip name: unzip
state: latest state: latest
- name: Download and unpack phpmyadmin - include_tasks: pma.yml
ansible.builtin.unarchive:
src: https://files.phpmyadmin.net/phpMyAdmin/5.1.0/phpMyAdmin-5.1.0-all-languages.zip
dest: /var/www/pma
remote_src: yes
owner: www-data
- name: move pma to pma dir
copy:
src: /var/www/pma/phpMyAdmin-5.1.0-all-languages/
dest: /var/www/pma/
remote_src: True

View File

@ -0,0 +1,14 @@
---
- name: Download and unpack phpmyadmin
ansible.builtin.unarchive:
src: https://files.phpmyadmin.net/phpMyAdmin/5.1.0/phpMyAdmin-5.1.0-all-languages.zip
dest: /var/www/pma
remote_src: yes
owner: www-data
- name: move pma to pma dir
copy:
src: /var/www/pma/phpMyAdmin-5.1.0-all-languages/
dest: /var/www/pma/
remote_src: True