Update to 2020-11-15 22:00

master
Daniel Berteaud 4 years ago
parent 0deae1a5cb
commit f270402bc3
  1. 16
      roles/pgadmin4/tasks/facts.yml
  2. 10
      roles/pgadmin4/tasks/install.yml
  3. 11
      roles/pgadmin4/vars/CentOS-7.yml
  4. 10
      roles/pgadmin4/vars/CentOS-8.yml
  5. 2
      roles/phpmyadmin/meta/main.yml
  6. 23
      roles/phpmyadmin/tasks/main.yml
  7. 7
      roles/phpmyadmin/vars/CentOS-7.yml
  8. 6
      roles/phpmyadmin/vars/CentOS-8.yml

@ -1,16 +1,22 @@
--- ---
- include_vars: "{{ item }}"
with_first_found:
- vars/{{ ansible_distribution }}-{{ ansible_distribution_major_version }}.yml
- vars/{{ ansible_distribution }}.yml
- vars/{{ ansible_os_family }}.yml
tags: pgadmin4
- name: Check if a 2.7 venv exists - name: Check if a 2.7 venv exists
stat: path={{ pga_root_dir }}/lib/python2.7 stat: path={{ pga_root_dir }}/lib/python2.7
register: pga_venv_27 register: pga_venv_27
tags: pgadmin4 tags: pgadmin4
- import_tasks: ../includes/webapps_set_install_mode.yml - block:
- import_tasks: ../includes/webapps_set_install_mode.yml
vars: vars:
- root_dir: "{{ pga_root_dir }}" - root_dir: "{{ pga_root_dir }}"
- version: "{{ pga_version }}" - version: "{{ pga_version }}"
tags: pgadmin4 - set_fact: pga_install_mode={{ install_mode }}
- set_fact: pga_install_mode={{ install_mode }} - set_fact: pga_current_version={{ current_version | default('') }}
tags: pgadmin4
- set_fact: pga_current_version={{ current_version | default('') }}
tags: pgadmin4 tags: pgadmin4

@ -1,15 +1,7 @@
--- ---
- name: Install packages - name: Install packages
yum: yum: name={{ pgadmin4_packages }}
name:
- gcc
- postgresql
- postgresql-devel
- python3-virtualenv
- python3-pip
- python-setuptools # Needed for pip install expect
- python-pip # Also needed to install expect
tags: pgadmin4 tags: pgadmin4
- name: Install global python tools - name: Install global python tools

@ -0,0 +1,11 @@
---
pgadmin4_packages:
- gcc
- postgresql
- postgresql-devel
- python3-virtualenv
- python3-pip
- python-setuptools # Needed for pip install expect
- python-pip # Also needed to install expect

@ -0,0 +1,10 @@
---
pgadmin4_packages:
- gcc
- postgresql
- postgresql-devel
- python3-virtualenv
- python3-pip
- python3-setuptools # Needed for pip install expect

@ -3,3 +3,5 @@
allow_duplicates: True allow_duplicates: True
dependencies: dependencies:
- role: httpd_php - role: httpd_php
- role: mysql_server
when: pma_db_server in ['localhost','127.0.0.1']

@ -1,12 +1,14 @@
--- ---
- include_vars: "{{ item }}"
with_first_found:
- vars/{{ ansible_distribution }}-{{ ansible_distribution_major_version }}.yml
- vars/{{ ansible_distribution }}.yml
- vars/{{ ansible_os_family }}.yml
tags: pma
- name: Install dependencies - name: Install dependencies
yum: yum: name={{ pma_packages }}
name:
- unzip
- MySQL-python
- mariadb
- acl
tags: pma tags: pma
- import_tasks: ../includes/create_system_user.yml - import_tasks: ../includes/create_system_user.yml
@ -15,14 +17,13 @@
- comment: "PHP FPM for pma {{ pma_id }}" - comment: "PHP FPM for pma {{ pma_id }}"
tags: pma tags: pma
- import_tasks: ../includes/webapps_set_install_mode.yml - block:
- import_tasks: ../includes/webapps_set_install_mode.yml
vars: vars:
- root_dir: "{{ pma_root_dir }}" - root_dir: "{{ pma_root_dir }}"
- version: "{{ pma_version }}" - version: "{{ pma_version }}"
tags: pma - set_fact: pma_install_mode={{ (install_mode == 'upgrade' and not pma_manage_upgrade) | ternary('none',install_mode) }}
- set_fact: pma_install_mode={{ (install_mode == 'upgrade' and not pma_manage_upgrade) | ternary('none',install_mode) }} - set_fact: pma_current_version={{ current_version | default('') }}
tags: pma
- set_fact: pma_current_version={{ current_version | default('') }}
tags: pma tags: pma
- import_tasks: ../includes/webapps_archive.yml - import_tasks: ../includes/webapps_archive.yml

@ -0,0 +1,7 @@
---
pma_packages:
- unzip
- MySQL-python
- mariadb
- acl

@ -0,0 +1,6 @@
---
pma_packages:
- unzip
- mariadb
- acl
Loading…
Cancel
Save