You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
1.2 KiB
41 lines
1.2 KiB
---
|
|
|
|
- name: Manage MariaDB client
|
|
collections: [ 'debops.debops', 'debops.roles01',
|
|
'debops.roles02', 'debops.roles03' ]
|
|
hosts: [ 'debian10' ]
|
|
become: True
|
|
|
|
environment: '{{ inventory__environment | d({})
|
|
| combine(inventory__group_environment | d({}))
|
|
| combine(inventory__host_environment | d({})) }}'
|
|
|
|
vars:
|
|
mariadb__flavor: '{{ ansible_local.mariadb.flavor|d(mariadb__flavor_map[ansible_distribution_release] | d("mariadb")) }}'
|
|
mariadb__upstream_version: '10.5'
|
|
mariadb__databases:
|
|
- name: 'intermetiz'
|
|
- name: 'intermetiz-products'
|
|
mariadb__users:
|
|
- name: 'intermetiz'
|
|
host: '%'
|
|
database: 'intermetiz%'
|
|
|
|
roles:
|
|
|
|
- role: secret
|
|
|
|
- role: keyring
|
|
tags: [ 'role::keyring', 'skip::keyring', 'role::mariadb' ]
|
|
keyring__dependent_apt_keys:
|
|
- '{{ mariadb__keyring__dependent_apt_keys }}'
|
|
|
|
- role: python
|
|
tags: [ 'role::python', 'skip::python', 'role::mariadb' ]
|
|
python__dependent_packages3:
|
|
- '{{ mariadb__python__dependent_packages3 }}'
|
|
python__dependent_packages2:
|
|
- '{{ mariadb__python__dependent_packages2 }}'
|
|
|
|
- role: mariadb
|
|
tags: [ 'role::mariadb', 'skip::mariadb' ]
|