-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconverge.yml
39 lines (34 loc) · 930 Bytes
/
converge.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
---
- name: Converge
hosts: all
vars:
autoconfigure: 'true'
mysql_host_fqdn: 'localhost'
tasks:
- name: Clean DNF cache (RHEL Based)
file:
path: /var/cache/dnf
state: absent
tags:
- molecule-idempotence-notest
- name: Install database (for testing)
import_role:
name: "diodonfrost.mariadb"
- name: Create a new database with name 'openemr'
mysql_db:
name: "{{ mysql_openemr_db_name }}"
encoding: "{{ mysql_openemr_db_encoding }}"
collation: "{{ mysql_openemr_db_collation }}"
state: present
- name: Create openemr database user
mysql_user:
name: "{{ mysql_openemr_user }}"
password: "{{ mysql_openemr_user_password }}"
encrypted: no
priv: "{{ mysql_openemr_db_name }}.*:ALL"
state: present
- name: Testing openemr-ansible role
import_role:
name: "openemr-ansible"
tags:
- autoconfigure