mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
should be able to alter with stock creds
This commit is contained in:
parent
db56e184d1
commit
dc41fb4bf7
1 changed files with 16 additions and 16 deletions
|
@ -106,6 +106,22 @@
|
|||
daemon_reload: yes
|
||||
state: restarted
|
||||
|
||||
- name: Remove the MySQL 'test' database
|
||||
mysql_db:
|
||||
db: test
|
||||
state: absent
|
||||
|
||||
- name: Delete anonymous MySQL server user for {{ ansible_hostname }}
|
||||
mysql_user:
|
||||
user: ""
|
||||
host: "{{ ansible_hostname }}"
|
||||
state: absent
|
||||
|
||||
- name: Delete anonymous MySQL server user for localhost
|
||||
mysql_user:
|
||||
user: ""
|
||||
state: absent
|
||||
|
||||
- name: Install /root/.my.cnf file from template, with root password credentials
|
||||
template:
|
||||
src: my.cnf.j2
|
||||
|
@ -134,22 +150,6 @@
|
|||
- 127.0.0.1
|
||||
- ::1
|
||||
|
||||
- name: Delete anonymous MySQL server user for {{ ansible_hostname }}
|
||||
mysql_user:
|
||||
user: ""
|
||||
host: "{{ ansible_hostname }}"
|
||||
state: absent
|
||||
|
||||
- name: Delete anonymous MySQL server user for localhost
|
||||
mysql_user:
|
||||
user: ""
|
||||
state: absent
|
||||
|
||||
- name: Remove the MySQL 'test' database
|
||||
mysql_db:
|
||||
db: test
|
||||
state: absent
|
||||
|
||||
|
||||
# RECORD MySQL AS INSTALLED
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue