Skip to content
Snippets Groups Projects
Select Git revision
  • ba9ecac74f2313787e7032659adb4164de1ab6f0
  • main default protected
  • th/galaxy
  • th/rt5
  • external-ldap-fix
  • th/apache
6 results

70-ldap.pm.j2

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    pgadmin4.yml 1.25 KiB
    ---
    
    - name: Add the Postgres APT repo signing key
      apt_key:
        url: "https://apt.postgresql.org/pub/repos/apt/ACCC4CF8.asc"
        id: B97B0AFCAA1A47F044F244A07FCC7D46ACCC4CF8
    
    - name: Pin Postgres APT repo
      copy:
        src: pgdg.pref
        dest: /etc/apt/preferences.d/pgdg.pref
    
    - name: Enable Postgres APT repository
      apt_repository:
        # yamllint disable-line rule:line-length
        repo: "deb https://apt.postgresql.org/pub/repos/apt/ {{ ansible_distribution_release }}-pgdg main"
    
    - name: Debconf pgadmin4
      debconf:
        pkg: pgadmin4-apache2
        question: "pgadmin4/{{ item.k }}"
        value: "{{ item.v }}"
        vtype: "{{ item.t }}"
      loop:
        - {k: password, v: "{{ pgadmin4_admin_password }}", t: password}
        - {k: email, v: "{{ pgadmin4_admin_email }}", t: string}
    
    - name: Install pgAdmin4
      apt:
        # In contrast to the name, this is the general WSGI package
        # It does not depend hard on apache2, but rather on any wsgi webserver
        name: pgadmin4-apache2
    
    - name: Install newer version of python3-flaskext.wtf
      apt:
        name: python3-flaskext.wtf
        default_release: stretch-pgdg
      when: ansible_distribution_release == "stretch"
    
    - name: Fix directory permissions
      file:
        path: "{{ item }}"
        state: directory
        owner: "{{ app_user }}"
        recurse: true