fix mariadb mapping

This commit is contained in:
Lars Hahn 2023-08-23 20:13:30 +02:00
parent 97eda612da
commit ab897963c9
2 changed files with 8 additions and 2 deletions

View File

@ -15,7 +15,7 @@
creates: "{{ ncloud_data_location }}/index.html"
cmd: >
php occ maintenance:install
--database '{{ ncloud_db.type }}'
--database '{{ ncloud_db_mapping[ncloud_db.type] }}'
--database-name '{{ ncloud_db.name }}'
--database-user '{{ ncloud_db.user }}'
--database-pass '{{ ncloud_db.pass }}'

View File

@ -11,3 +11,9 @@ ncloud_notify_trusted_proxies:
- "::1"
- "{{ hostvars[inventory_hostname]['ansible_default_ipv4']['address'] }}"
- "{{ hostvars[inventory_hostname]['ansible_default_ipv6']['address'] }}"
ncloud_db_mapping: {
'pgsql': 'postgres',
'mariadb': 'mysql',
'mysql': 'mysql'
}