mirror of
https://github.com/geerlingguy/ansible-role-apache
synced 2025-01-10 03:40:18 +01:00
mysql_daemon fact, README example
This commit is contained in:
parent
a8c5c3b672
commit
1b1a131dc6
2 changed files with 20 additions and 0 deletions
15
README.md
15
README.md
|
@ -106,6 +106,21 @@ None.
|
||||||
password: similarly-secure-password
|
password: similarly-secure-password
|
||||||
priv: "example_db.*:ALL"
|
priv: "example_db.*:ALL"
|
||||||
|
|
||||||
|
|
||||||
|
## Mariadb usage
|
||||||
|
|
||||||
|
mysql_packages:
|
||||||
|
- mariadb
|
||||||
|
- mariadb-server
|
||||||
|
- mariadb-libs
|
||||||
|
- MySQL-python
|
||||||
|
- perl-DBD-MySQL
|
||||||
|
mysql_daemon: mariadb
|
||||||
|
mysql_socket: /var/lib/mysql/mysql.sock
|
||||||
|
mysql_log_error: /var/log/mariadb/mariadb.log
|
||||||
|
mysql_syslog_tag: mariadb
|
||||||
|
mysql_pid_file: /var/run/mariadb/mariadb.pid
|
||||||
|
|
||||||
## License
|
## License
|
||||||
|
|
||||||
MIT / BSD
|
MIT / BSD
|
||||||
|
|
|
@ -8,6 +8,11 @@
|
||||||
mysql_packages: "{{ __mysql_packages | list }}"
|
mysql_packages: "{{ __mysql_packages | list }}"
|
||||||
when: mysql_packages is not defined
|
when: mysql_packages is not defined
|
||||||
|
|
||||||
|
- name: Define mysql_daemon.
|
||||||
|
set_fact:
|
||||||
|
mysql_daemon: "{{ __mysql_daemon }} "
|
||||||
|
when: mysql_daemon is not defined
|
||||||
|
|
||||||
# Setup/install tasks.
|
# Setup/install tasks.
|
||||||
- include: setup-RedHat.yml
|
- include: setup-RedHat.yml
|
||||||
when: ansible_os_family == 'RedHat'
|
when: ansible_os_family == 'RedHat'
|
||||||
|
|
Loading…
Reference in a new issue