Skip to content

Commit

Permalink
Add libmysqlclient-dev to drupal
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandermeindl committed Nov 17, 2024
1 parent ea7b9fc commit 1d9f3e5
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
6 changes: 6 additions & 0 deletions roles/drupal/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,12 @@ drupal_memcache_module: sites/all/modules/contrib/memcache
drupal_memcache_prefix: drupal
drupal_vhost_includes: []

drupal_mysql_packages:
- libmysqlclient-dev

drupal_postgresql_packages:
- libpq-dev

# if defined, only these users can access vhost
# if no directory (location) is defined and vhost_users are defined, whole vhost is protected
drupal_vhost_users: []
Expand Down
5 changes: 5 additions & 0 deletions roles/drupal/tasks/instance_mysql.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
---

- name: Ensure MySQL packages are installed
ansible.builtin.apt:
name: '{{ drupal_mysql_packages }}'
state: present

- name: Be sure drupal databases exists - {{ instance.name }}
community.mysql.mysql_db:
name: '{{ instance.db_name | default(instance.name) | replace("-", "_") }}'
Expand Down
5 changes: 5 additions & 0 deletions roles/drupal/tasks/instance_postgresql.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
---

- name: Ensure PostgreSQL packages are installed
ansible.builtin.apt:
name: '{{ drupal_postgresql_packages }}'
state: present

- name: Ensure postgresql drupal user is present - {{ instance.name }}
become_user: postgres
become: true
Expand Down

0 comments on commit 1d9f3e5

Please sign in to comment.