File tree Expand file tree Collapse file tree 3 files changed +18
-14
lines changed Expand file tree Collapse file tree 3 files changed +18
-14
lines changed Original file line number Diff line number Diff line change 2
2
* .pyc
3
3
__pycache__
4
4
files /
5
+ .idea
Original file line number Diff line number Diff line change @@ -53,8 +53,8 @@ mariadb:
53
53
application_event_log : /var/log/application_events/MariaDB-Backup.log
54
54
repository :
55
55
apt :
56
- key_url : https://mariadb.org/mariadb_release_signing_key.asc
57
- repository : " deb [arch={{ apt_arch }}] http://mirror.netcologne.de/mariadb/repo/{{ vars.mariadb.version }}/{{ ansible_distribution | lower }} {{ ansible_distribution_release | lower }} main "
56
+ key_url : https://mirror.netcologne.de/mariadb/PublicKey_v2
57
+ repository : " http://mirror.netcologne.de/mariadb/repo/{{ vars.mariadb.version }}/{{ ansible_distribution | lower }}"
58
58
mariadb_root_password : >-
59
59
{%- if mariadb.galera.cluster and not mariadb.galera.initializer -%}
60
60
{{- (mariadb_galera_cluster_nodes
Original file line number Diff line number Diff line change 4
4
- ansible_os_family == 'Debian'
5
5
- mariadb.repository.apt.repository
6
6
block :
7
- - name : Install GPG
7
+ - name : Install requirements for MariaDB
8
8
ansible.builtin.apt :
9
9
update_cache : yes
10
10
name :
11
11
- gpg
12
12
- gpg-agent
13
+ - python3-debian
13
14
14
- - name : Add MariaDB repository key
15
- ansible.builtin.apt_key :
16
- url : " {{ mariadb.repository.apt.key_url }}"
15
+ - name : Remove the legacy MariaDB repository
16
+ ansible.builtin.file :
17
+ dest : /etc/apt/sources.list.d/mariadb.list
18
+ state : absent
17
19
18
20
- name : Add MariaDB repository
19
- loop :
20
- - /etc/apt/sources.list.d/mariadb.list
21
- ansible.builtin.copy :
22
- content : |
23
- {{ mariadb.repository.apt.repository }}
24
- dest : " {{ item }}"
25
- owner : root
26
- mode : " 0644"
27
21
register : mariadb_add_apt_repository
22
+ ansible.builtin.deb822_repository :
23
+ name : " mariadb"
24
+ uris : " {{ mariadb.repository.apt.repository }}"
25
+ signed_by : " {{ mariadb.repository.apt.key_url }}"
26
+ types : [deb]
27
+ components : [main]
28
+ suites : ' {{ ansible_distribution_release }}'
29
+ state : present
30
+ enabled : yes
28
31
29
32
- name : Update apt cache
30
33
ansible.builtin.apt :
You can’t perform that action at this time.
0 commit comments