1
0
Fork 0
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:
Jerry Vonau 2020-08-23 03:48:33 -05:00
parent db56e184d1
commit dc41fb4bf7

View file

@ -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