Skip to content

Commit

Permalink
fix: localhost as default host for users
Browse files Browse the repository at this point in the history
  • Loading branch information
Xolyu committed Mar 26, 2024
1 parent aba5784 commit c2433c1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ Installs and configures the MariaDB database server. Creates databases and users
```yml
mariadb_users:
- name: example
host: '127.0.0.1'
host: 'localhost'
password: TOP_secret
priv: '*.*:USAGE'
state: present # present, absent
Expand Down
2 changes: 1 addition & 1 deletion defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ mariadb_databases: []
# Users
mariadb_users: []
# - name: example
# host: '127.0.0.1'
# host: 'localhost'
# password: TOP_secret
# priv: '*.*:USAGE'
# state: present # present, absent
Expand Down
2 changes: 1 addition & 1 deletion tasks/34_users.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
- name: Ensure MySQL/MariaDB users are present.
mysql_user:
name: "{{ item.name }}"
host: "{{ item.host | default('127.0.0.1') }}"
host: "{{ item.host | default('localhost') }}"
password: "{{ item.password }}"
priv: "{{ item.priv | default('*.*:USAGE') }}"
state: "{{ item.state | default('present') }}"
Expand Down

0 comments on commit c2433c1

Please sign in to comment.